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

Public methods
open static Policy!

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!

open static Policy!

open Provider!

open String!

open Boolean
implies(domain: ProtectionDomain!, permission: Permission!)

open Unit

open static Unit

Properties
static PermissionCollection!

Public constructors

Policy

Added in API level 1
Policy()

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!

getParameters

Added in API level 9
open fun getParameters(): Policy.Parameters!

getPermissions

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

getPermissions

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

getPolicy

Added in API level 1
open static fun getPolicy(): Policy!

getProvider

Added in API level 9
open fun getProvider(): Provider!

getType

Added in API level 9
open fun getType(): String!

implies

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

refresh

Added in API level 1
open fun refresh(): Unit

setPolicy

Added in API level 1
open static fun setPolicy(p: Policy!): Unit

Properties

UNSUPPORTED_EMPTY_COLLECTION

Added in API level 9
static val UNSUPPORTED_EMPTY_COLLECTION: PermissionCollection!