Defines user context in which a set of permissions is granted.
- See also
- Companion
- object
Value members
Abstract methods
Creates new security context by adding supplied permissions to existing set of permissions.
Creates new security context by adding supplied permissions to existing set of permissions.
- Value Params
- perms
permissions
- Returns
new security context
Concrete methods
Creates new security context by adding supplied permissions to existing set of permissions.
Creates new security context by adding supplied permissions to existing set of permissions.
- Value Params
- more
additional permissions
- one
permission
- Returns
new security context
Inherited methods
Tests permissions before applying operation.
Tests permissions before applying operation.
If all supplied permissions are granted, the operation is applied; otherwise, SecurityViolation is thrown.
- Value Params
- more
additional permissions
- one
permission
- op
operation
- Returns
value of operation
- Throws
- SecurityViolation
if all permissions are not granted
- Inherited from
- SecurityContext
Tests permissions before applying operation.
Tests permissions before applying operation.
If all supplied permissions are granted, the operation is applied; otherwise, SecurityViolation is thrown.
- Value Params
- op
operation
- perms
permissions
- Returns
value of operation
- Throws
- SecurityViolation
if all permissions are not granted
- Note
The operation is authorized if
perms
is empty.- Inherited from
- SecurityContext
Tests permissions before applying operation.
Tests permissions before applying operation.
If any of supplied permissions is granted, the operation is applied; otherwise, SecurityViolation is thrown.
- Value Params
- more
additional permissions
- one
permission
- op
operation
- Returns
value of operation
- Throws
- SecurityViolation
if no permission is granted
- Inherited from
- SecurityContext
Tests permissions before applying operation.
Tests permissions before applying operation.
If any of supplied permissions is granted, the operation is applied; otherwise, SecurityViolation is thrown.
- Value Params
- op
operation
- perms
permissions
- Returns
value of operation
- Throws
- SecurityViolation
if no permission is granted
- Note
The operation is authorized if
perms
is empty.- Inherited from
- SecurityContext
Tests permission before applying operation.
Tests permission before applying operation.
If supplied permission is granted, the operation is applied; otherwise, SecurityViolation is thrown.
- Value Params
- op
operation
- perm
permission
- Returns
value of operation
- Throws
- SecurityViolation
if permission is not granted
- Inherited from
- SecurityContext
Tests whether given permission is granted.
Tests whether given permission is granted.
- Value Params
- perm
permission
- Returns
true
if permission is granted; otherwise,false
- Inherited from
- SecurityContext