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, boolean inheritable, Set<AuthorizationPermission> permissions) CacheRoleImpl
(String name, boolean inheritable, AuthorizationPermission... authorizationPermissions) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
Whether this role can be implicitly inherited.toString()
-
Constructor Details
-
CacheRoleImpl
public CacheRoleImpl(String name, boolean inheritable, AuthorizationPermission... authorizationPermissions) -
CacheRoleImpl
@ProtoFactory public CacheRoleImpl(String name, 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
-
toString
-
equals
-
hashCode
public int hashCode()
-