Enum Class PolicyEnforcementPoint.TokenScopeRule
java.lang.Object
java.lang.Enum<PolicyEnforcementPoint.TokenScopeRule>
org.gcube.informationsystem.resourceregistry.pep.PolicyEnforcementPoint.TokenScopeRule
- All Implemented Interfaces:
Serializable,Comparable<PolicyEnforcementPoint.TokenScopeRule>,Constable
- Enclosing class:
- PolicyEnforcementPoint
public static enum PolicyEnforcementPoint.TokenScopeRule
extends Enum<PolicyEnforcementPoint.TokenScopeRule>
Defines rules for binding the Context in the caller's JWT token to the target resource.
-
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 TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELF
Target UUID must match the token's Context UUID. -
PARENT
Token's Context must be the parent of the target Context. -
SUBTREE
Target UUID must reside within the subtree of the token's Context. -
NONE
No context-to-resource binding constraint (global lookup).
-
-
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
-