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, String description, boolean implicit, boolean inheritable, Set<AuthorizationPermission> permissions) CacheRoleImpl(String name, String description, boolean isImplicit, boolean inheritable, AuthorizationPermission... authorizationPermissions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanA description for the role.intgetMask()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()booleanIf this role is part of the implicit authorization configurationbooleanWhether 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: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
-
getDescription
Description copied from interface:RoleA description for the role.- Specified by:
getDescriptionin interfaceRole
-
isImplicit
public boolean isImplicit()Description copied from interface:RoleIf this role is part of the implicit authorization configuration- Specified by:
isImplicitin interfaceRole
-
toString
-
equals
-
hashCode
public int hashCode()
-