sealed trait SecurityContext extends AnyRef
Defines context in which permissions are granted.
- Alphabetic
- By Inheritance
- SecurityContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
test(perm: Permission): Boolean
Tests whether given permission is granted.
Tests whether given permission is granted.
- perm
permission
- returns
true
if permission is granted; otherwise,false
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
all[T](one: Permission, more: Permission*)(op: ⇒ T): T
Tests permissions before applying operation.
Tests permissions before applying operation.
If all supplied permissions are granted, the operation is applied; otherwise, SecurityViolation is thrown.
- one
permission
- more
additional permissions
- op
operation
- returns
value of operation
- Exceptions thrown
SecurityViolation
if all permissions are not granted
-
def
all[T](perms: Set[Permission])(op: ⇒ T): T
Tests permissions before applying operation.
Tests permissions before applying operation.
If all supplied permissions are granted, the operation is applied; otherwise, SecurityViolation is thrown.
- perms
permissions
- op
operation
- returns
value of operation
- Exceptions thrown
SecurityViolation
if all permissions are not granted- Note
The operation is authorized if
perms
is empty.
-
def
any[T](one: Permission, more: Permission*)(op: ⇒ T): T
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.
- one
permission
- more
additional permissions
- op
operation
- returns
value of operation
- Exceptions thrown
SecurityViolation
if no permission is granted
-
def
any[T](perms: Set[Permission])(op: ⇒ T): T
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.
- perms
permissions
- op
operation
- returns
value of operation
- Exceptions thrown
SecurityViolation
if no permission is granted- Note
The operation is authorized if
perms
is empty.
-
def
apply[T](perm: Permission)(op: ⇒ T): T
Tests permission before applying operation.
Tests permission before applying operation.
If supplied permission is granted, the operation is applied; otherwise, SecurityViolation is thrown.
- perm
permission
- op
operation
- returns
value of operation
- Exceptions thrown
SecurityViolation
if permission is not granted
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()