Defines user context in which a set of permissions is granted.
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
Members list
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 parameters
- perms
-
permissions
Attributes
- Returns
-
new security context
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 parameters
- more
-
additional permissions
- one
-
permission
Attributes
- Returns
-
new security context
Gets permissions.
Gets permissions.
Attributes
Creates new security context by removing supplied permissions from existing set of permissions.
Creates new security context by removing supplied permissions from existing set of permissions.
Value parameters
- perms
-
permissions
Attributes
- Returns
-
new security context
Creates new security context by removing supplied permissions from existing set of permissions.
Creates new security context by removing supplied permissions from existing set of permissions.
Value parameters
- more
-
additional permissions
- one
-
permission
Attributes
- 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 parameters
- more
-
additional permissions
- one
-
permission
- op
-
operation
Attributes
- Returns
-
operation value
- Throws
-
SecurityViolation
if all permissions are not granted
- Note
-
Operation is authorized if
perms
is empty. - 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 parameters
- op
-
operation
- perms
-
permissions
Attributes
- Returns
-
operation value
- Throws
-
SecurityViolation
if all permissions are not granted
- Note
-
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 parameters
- more
-
additional permissions
- one
-
permission
- op
-
operation
Attributes
- Returns
-
operation value
- Throws
-
SecurityViolation
if no permission is granted
- Note
-
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 parameters
- op
-
operation
- perms
-
permissions
Attributes
- Returns
-
operation value
- Throws
-
SecurityViolation
if no permission is granted
- Note
-
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 parameters
- op
-
operation
- perm
-
permission
Attributes
- Returns
-
operation value
- Throws
-
SecurityViolation
if permission is not granted
- Inherited from:
- SecurityContext
Tests whether supplied permission is granted.
Tests whether supplied permission is granted.
Value parameters
- perm
-
permission
Attributes
- Returns
-
true
if permission is granted; otherwise,false
- Inherited from:
- SecurityContext
Tests whether all supplied permissions are granted.
Tests whether all supplied permissions are granted.
Value parameters
- more
-
additional permissions
- one
-
permission
Attributes
- Returns
-
true
if all permissions are granted; otherwise,false
- Note
-
Test succeeds if
perms
is empty. - Inherited from:
- SecurityContext
Tests whether all supplied permissions are granted.
Tests whether all supplied permissions are granted.
Value parameters
- perms
-
permissions
Attributes
- Returns
-
true
if all permissions are granted; otherwise,false
- Note
-
Test succeeds if
perms
is empty. - Inherited from:
- SecurityContext
Tests whether any of supplied permissions is granted.
Tests whether any of supplied permissions is granted.
Value parameters
- more
-
additional permissions
- one
-
permission
Attributes
- Returns
-
true
if any permission is granted; otherwise,false
- Note
-
Test succeeds if
perms
is empty. - Inherited from:
- SecurityContext
Tests whether any of supplied permissions is granted.
Tests whether any of supplied permissions is granted.
Value parameters
- perms
-
permissions
Attributes
- Returns
-
true
if any permission is granted; otherwise,false
- Note
-
Test succeeds if
perms
is empty. - Inherited from:
- SecurityContext