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
Modifier and TypeMethodDescriptionA description for the role.int
getMask()
Returns a pre-computed access mask which contains the permissions specified by this rolegetName()
Returns the name of this roleReturns the list of permissions associated with this roleboolean
If this role is part of the implicit authorization configurationboolean
Whether this role can be implicitly inherited.static Role
newRole
(String name, String description, boolean isImplicit, boolean inheritable, AuthorizationPermission... authorizationPermissions)
-
Method Details
-
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. -
getDescription
String getDescription()A description for the role. -
isImplicit
boolean isImplicit()If this role is part of the implicit authorization configuration -
newRole
static Role newRole(String name, String description, boolean isImplicit, boolean inheritable, AuthorizationPermission... authorizationPermissions)
-