- java.lang.Object
-
- io.helidon.security.util.AbacSupport.BasicAttributes
-
- All Implemented Interfaces:
AbacSupport
- Enclosing interface:
- AbacSupport
public static class AbacSupport.BasicAttributes extends Object implements AbacSupport
ImplementsAbacSupport
interface and supports adding attributes. This class is mutable and thread safe.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.security.util.AbacSupport
AbacSupport.BasicAttributes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
abacAttributeNames()
A collection of all property names in this container.Object
abacAttributeRaw(String key)
Return the actual property value or null if not present.static AbacSupport.BasicAttributes
create()
Create empty basic attributes.static AbacSupport.BasicAttributes
create(AbacSupport toCopy)
Create basic attributes that have all attributes of the toCopy.void
put(String classifier, Object value)
Put a new attribute to this instance.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.helidon.security.util.AbacSupport
abacAttribute
-
-
-
-
Method Detail
-
create
public static AbacSupport.BasicAttributes create()
Create empty basic attributes.- Returns:
- basic attributes
-
create
public static AbacSupport.BasicAttributes create(AbacSupport toCopy)
Create basic attributes that have all attributes of the toCopy.- Parameters:
toCopy
- abac support to copy- Returns:
- basic attributes with all attributes of the toCopy
AbacSupport
-
put
public void put(String classifier, Object value)
Put a new attribute to this instance.- Parameters:
classifier
- classifier (name) of the attributevalue
- attribute value
-
abacAttributeNames
public Collection<String> abacAttributeNames()
Description copied from interface:AbacSupport
A collection of all property names in this container.- Specified by:
abacAttributeNames
in interfaceAbacSupport
- Returns:
- collection of keys
-
abacAttributeRaw
public Object abacAttributeRaw(String key)
Description copied from interface:AbacSupport
Return the actual property value or null if not present. This is the only method that needs to be implemented.- Specified by:
abacAttributeRaw
in interfaceAbacSupport
- Parameters:
key
- key (name) of the property- Returns:
- value of the property or null
-
-