Class Grant
java.lang.Object
io.helidon.security.Grant
- All Implemented Interfaces:
AbacSupport, Principal
- Direct Known Subclasses:
Role
A concept representing anything that can be granted to a subject.
This may be:
- role
- scope
- permission
- anything else grantable, including additional principals
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface AbacSupport
AbacSupport.BasicAttributesModifier and TypeInterfaceDescriptionstatic classImplementsAbacSupportinterface and supports adding attributes. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrant(Grant.Builder<?> builder) Create an instance based on a builder. -
Method Summary
Modifier and TypeMethodDescriptionA collection of all property names in this container.abacAttributeRaw(String key) Return the actual property value or null if not present.static Grant.Builder<?> builder()Creates a fluent API builder to build new instances of this class.booleangetName()inthashCode()origin()Origin of this grant - this may be an arbitrary string, URI, component creating it etc.toString()type()Type of this grant.Methods inherited from interface AbacSupport
abacAttribute
-
Constructor Details
-
Grant
Create an instance based on a builder.- Parameters:
builder- builder instance
-
-
Method Details
-
builder
Creates a fluent API builder to build new instances of this class.- Returns:
- builder instance
-
abacAttributeRaw
Description copied from interface:AbacSupportReturn the actual property value or null if not present. This is the only method that needs to be implemented.- Specified by:
abacAttributeRawin interfaceAbacSupport- Parameters:
key- key (name) of the property- Returns:
- value of the property or null
-
abacAttributeNames
Description copied from interface:AbacSupportA collection of all property names in this container.- Specified by:
abacAttributeNamesin interfaceAbacSupport- Returns:
- collection of keys
-
type
-
getName
-
toString
-
origin
Origin of this grant - this may be an arbitrary string, URI, component creating it etc.- Returns:
- origin of this grant
-
equals
-
hashCode
-