Package org.infinispan.security.impl
Class CacheRoleImpl
java.lang.Object
org.infinispan.security.impl.CacheRoleImpl
- All Implemented Interfaces:
Role
CacheRoleImpl.
- Since:
- 7.0
- Author:
- Tristan Tarrant
-
Constructor Summary
ConstructorDescriptionCacheRoleImpl
(String name, String description, boolean implicit, boolean inheritable, Set<AuthorizationPermission> permissions) CacheRoleImpl
(String name, String description, boolean isImplicit, boolean inheritable, AuthorizationPermission... authorizationPermissions) -
Method Summary
Modifier and TypeMethodDescriptionboolean
A 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 roleint
hashCode()
boolean
If this role is part of the implicit authorization configurationboolean
Whether this role can be implicitly inherited.toString()
-
Constructor Details
-
CacheRoleImpl
public CacheRoleImpl(String name, String description, boolean isImplicit, boolean inheritable, AuthorizationPermission... authorizationPermissions) -
CacheRoleImpl
@ProtoFactory public CacheRoleImpl(String name, String description, boolean implicit, boolean inheritable, Set<AuthorizationPermission> permissions)
-
-
Method Details
-
getName
Description copied from interface:Role
Returns the name of this role -
getPermissions
Description copied from interface:Role
Returns the list of permissions associated with this role- Specified by:
getPermissions
in interfaceRole
-
getMask
public int getMask()Description copied from interface:Role
Returns a pre-computed access mask which contains the permissions specified by this role -
isInheritable
public boolean isInheritable()Description copied from interface:Role
Whether this role can be implicitly inherited.- Specified by:
isInheritable
in interfaceRole
-
getDescription
Description copied from interface:Role
A description for the role.- Specified by:
getDescription
in interfaceRole
-
isImplicit
public boolean isImplicit()Description copied from interface:Role
If this role is part of the implicit authorization configuration- Specified by:
isImplicit
in interfaceRole
-
toString
-
equals
-
hashCode
public int hashCode()
-