Package org.infinispan.security
Interface Role
-
- All Known Implementing Classes:
CacheRoleImpl
public interface Role
A role to permission mapping.- Since:
- 7.0
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getMask()
Returns a pre-computed access mask which contains the permissions specified by this roleString
getName()
Returns the name of this roleCollection<AuthorizationPermission>
getPermissions()
Returns the list of permissions associated with this roleboolean
isInheritable()
Whether this role can be implicitly inherited.static Role
newRole(String name, boolean inheritable, AuthorizationPermission... authorizationPermissions)
-
-
-
Method Detail
-
getName
String getName()
Returns the name of this role
-
getPermissions
Collection<AuthorizationPermission> getPermissions()
Returns the list of permissions associated with this role
-
getMask
int getMask()
Returns a pre-computed access mask which contains the permissions specified by this role
-
isInheritable
boolean isInheritable()
Whether this role can be implicitly inherited.
-
newRole
static Role newRole(String name, boolean inheritable, AuthorizationPermission... authorizationPermissions)
-
-