Added in API level 1
Permission
abstract class Permission : Guard, Serializable
| kotlin.Any | |
| ↳ | java.security.Permission |
Android doesn't support SecurityManager. Do not use this class.
Summary
| Public constructors | |
|---|---|
Permission(name: String!) |
|
| Public methods | |
|---|---|
| open Unit |
checkGuard(object: Any!)Determines whether or not to allow access to the guarded object |
| abstract String! | |
| String! |
getName() |
| abstract Boolean |
implies(permission: Permission!) |
| open PermissionCollection! | |
Public constructors
Public methods
checkGuard
Added in API level 1
open fun checkGuard(object: Any!): Unit
Determines whether or not to allow access to the guarded object object. Returns silently if access is allowed. Otherwise, throws a SecurityException.
| Parameters | |
|---|---|
object |
Any!: the object being protected by the guard. |
| Exceptions | |
|---|---|
java.lang.SecurityException |
if access is denied. |
newPermissionCollection
Added in API level 1
open fun newPermissionCollection(): PermissionCollection!