Package io.helidon.security
Class Role
- java.lang.Object
-
- io.helidon.security.Grant
-
- io.helidon.security.Role
-
- All Implemented Interfaces:
AbacSupport
,Principal
public final class Role extends Grant
A security role used in RBAC (role based access control) schemes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Role.Builder
A fluent API builder forRole
.-
Nested classes/interfaces inherited from interface io.helidon.security.util.AbacSupport
AbacSupport.BasicAttributes
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE_TYPE
Type of grant used inGrant.type()
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Role.Builder
builder()
Creates a fluent API builder to build new instances of this class.static Role
create(String name)
Create a role based on a name without any attributes.-
Methods inherited from class io.helidon.security.Grant
abacAttributeNames, abacAttributeRaw, getName, origin, toString, type
-
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
-
-
-
-
Field Detail
-
ROLE_TYPE
public static final String ROLE_TYPE
Type of grant used inGrant.type()
.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static Role create(String name)
Create a role based on a name without any attributes.- Parameters:
name
- name of role- Returns:
- a new role instance
-
builder
public static Role.Builder builder()
Creates a fluent API builder to build new instances of this class.- Returns:
- a builder instance
-
-