Added in API level 1

ProtectionDomain

open class ProtectionDomain
kotlin.Any
   ↳ java.security.ProtectionDomain

Legacy security code; do not use.

Summary

Public constructors
ProtectionDomain(codesource: CodeSource!, permissions: PermissionCollection!)

ProtectionDomain(codesource: CodeSource!, permissions: PermissionCollection!, classloader: ClassLoader!, principals: Array<Principal!>!)

Public methods
ClassLoader!

CodeSource!

PermissionCollection!

Array<Principal!>!

open Boolean
implies(permission: Permission!)

Public constructors

ProtectionDomain

Added in API level 1
ProtectionDomain(
    codesource: CodeSource!,
    permissions: PermissionCollection!)

ProtectionDomain

Added in API level 1
ProtectionDomain(
    codesource: CodeSource!,
    permissions: PermissionCollection!,
    classloader: ClassLoader!,
    principals: Array<Principal!>!)

Public methods

getClassLoader

Added in API level 1
fun getClassLoader(): ClassLoader!

getCodeSource

Added in API level 1
fun getCodeSource(): CodeSource!

getPermissions

Added in API level 1
fun getPermissions(): PermissionCollection!

getPrincipals

Added in API level 1
fun getPrincipals(): Array<Principal!>!

implies

Added in API level 1
open fun implies(permission: Permission!): Boolean