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 boolean
equals(Object o)
int
getMask()
Returns a pre-computed access mask which contains the permissions specified by this roleString
getName()
Returns the name of this roleCollection<AuthorizationPermission>
getPermissions()
Returns the list of permissions associated with this roleint
hashCode()
String
toString()
-
-
-
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:Role
Returns the name of this role
-
getPermissions
public Collection<AuthorizationPermission> 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
-
-