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
ConstructorsConstructorDescriptionCacheRoleImpl(String name, boolean inheritable, Set<AuthorizationPermission> permissions) CacheRoleImpl(String name, boolean inheritable, AuthorizationPermission... authorizationPermissions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetMask()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 roleinthashCode()booleanWhether 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:RoleReturns the name of this role -
getPermissions
Description copied from interface:RoleReturns the list of permissions associated with this role- Specified by:
getPermissionsin interfaceRole
-
getMask
public int getMask()Description copied from interface:RoleReturns a pre-computed access mask which contains the permissions specified by this role -
isInheritable
public boolean isInheritable()Description copied from interface:RoleWhether this role can be implicitly inherited.- Specified by:
isInheritablein interfaceRole
-
toString
-
equals
-
hashCode
public int hashCode()
-