Package org.infinispan.security.impl
Class CacheRoleImpl
- java.lang.Object
-
- org.infinispan.security.impl.CacheRoleImpl
-
-
Constructor Summary
Constructors Constructor Description CacheRoleImpl(String name, Set<AuthorizationPermission> permissions)CacheRoleImpl(String name, AuthorizationPermission... authorizationPermissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetMask()Returns a pre-computed access mask which contains the permissions specified by this roleStringgetName()Returns the name of this roleCollection<AuthorizationPermission>getPermissions()Returns the list of permissions associated with this roleinthashCode()StringtoString()
-
-
-
Constructor Detail
-
CacheRoleImpl
public CacheRoleImpl(String name, AuthorizationPermission... authorizationPermissions)
-
CacheRoleImpl
public CacheRoleImpl(String name, Set<AuthorizationPermission> permissions)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:RoleReturns the name of this role
-
getPermissions
public Collection<AuthorizationPermission> 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
-
-