Enum Class SecurityLattice
- All Implemented Interfaces:
Semiring<SecurityLevel>,Serializable,Comparable<SecurityLattice>,Constable
The security / access-control lattice semiring over
SecurityLevel
(min, max) — propagates a confidentiality (clearance) level through a
query so each output tuple carries the level at which it may be released.
⊕ is min (a tuple derivable two ways is released at the
most accessible of them), ⊗ is max (a join is
only as releasable as its most restrictive input). The identities follow
from the total order PUBLIC < CONFIDENTIAL < SECRET < TOP_SECRET:
0 is SecurityLevel.TOP_SECRET (the min identity
and absent/unreachable element) and 1 is
SecurityLevel.PUBLIC (the max identity). Annihilation holds
because max(TOP_SECRET, x) == TOP_SECRET, and max distributes
over min.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionone()Returns the multiplicative identity1.plus(SecurityLevel a, SecurityLevel b) Combines two annotations with⊕— the way alternative derivations of the same tuple (union, projection) are merged.times(SecurityLevel a, SecurityLevel b) Combines two annotations with⊗— the way the joint requirements of a tuple (join, product) are merged.static SecurityLatticeReturns the enum constant of this class with the specified name.static SecurityLattice[]values()Returns an array containing the constants of this enum class, in the order they are declared.zero()Returns the additive identity0.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
zero
Description copied from interface:SemiringReturns the additive identity0. It is the identity ofSemiring.plus(K, K)and the annihilator ofSemiring.times(K, K), and denotes an absent tuple.- Specified by:
zeroin interfaceSemiring<SecurityLevel>- Returns:
- the additive identity
0
-
one
Description copied from interface:SemiringReturns the multiplicative identity1. It is the identity ofSemiring.times(K, K).- Specified by:
onein interfaceSemiring<SecurityLevel>- Returns:
- the multiplicative identity
1
-
plus
Description copied from interface:SemiringCombines two annotations with⊕— the way alternative derivations of the same tuple (union, projection) are merged. Associative and commutative, with identitySemiring.zero().- Specified by:
plusin interfaceSemiring<SecurityLevel>- Parameters:
a- the first annotationb- the second annotation- Returns:
a ⊕ b
-
times
Description copied from interface:SemiringCombines two annotations with⊗— the way the joint requirements of a tuple (join, product) are merged. Associative and commutative, with identitySemiring.one(), annihilated bySemiring.zero().- Specified by:
timesin interfaceSemiring<SecurityLevel>- Parameters:
a- the first annotationb- the second annotation- Returns:
a ⊗ b
-