Added in API level 1
Policy
abstract class Policy
| kotlin.Any | |
| ↳ | java.security.Policy |
Android doesn't support SecurityManager. Do not use this class.
Summary
| Nested classes | |
|---|---|
| abstract | |
| Public constructors | |
|---|---|
Policy() |
|
| Public methods | |
|---|---|
| open static Policy! |
getInstance(type: String!, params: Policy.Parameters!) |
| open static Policy! |
getInstance(type: String!, params: Policy.Parameters!, provider: String!) |
| open static Policy! |
getInstance(type: String!, params: Policy.Parameters!, provider: Provider!) |
| open Policy.Parameters! | |
| open PermissionCollection! |
getPermissions(codesource: CodeSource!) |
| open PermissionCollection! |
getPermissions(domain: ProtectionDomain!) |
| open static Policy! | |
| open Provider! | |
| open String! |
getType() |
| open Boolean |
implies(domain: ProtectionDomain!, permission: Permission!) |
| open Unit |
refresh() |
| open static Unit | |
| Properties | |
|---|---|
| static PermissionCollection! | |
Public constructors
Public methods
getInstance
Added in API level 9
open static fun getInstance(
type: String!,
params: Policy.Parameters!
): Policy!
getInstance
Added in API level 9
open static fun getInstance(
type: String!,
params: Policy.Parameters!,
provider: String!
): Policy!
getInstance
Added in API level 9
open static fun getInstance(
type: String!,
params: Policy.Parameters!,
provider: Provider!
): Policy!
getPermissions
Added in API level 1
open fun getPermissions(codesource: CodeSource!): PermissionCollection!
getPermissions
Added in API level 1
open fun getPermissions(domain: ProtectionDomain!): PermissionCollection!
implies
Added in API level 1
open fun implies(
domain: ProtectionDomain!,
permission: Permission!
): Boolean
Properties
UNSUPPORTED_EMPTY_COLLECTION
Added in API level 9
static val UNSUPPORTED_EMPTY_COLLECTION: PermissionCollection!