public class Role extends Object implements RoleDetails
RoleManager. Implementors may use this class
directly, subclass it, or write their own RoleDetails implementation from scratch.
| Constructor and Description |
|---|
Role(String role) |
Role(String role,
Authority... authorities) |
Role(String role,
String... authorities) |
| Modifier and Type | Method and Description |
|---|---|
Authority[] |
getAuthorities()
Returns the granted authorities granted to the role.
|
String |
getRole()
Returns the role name used to identify this role.
|
public Role(String role)
public Authority[] getAuthorities()
RoleDetailsnull.getAuthorities in interface RoleDetailsnull)public String getRole()
RoleDetailsnull.getRole in interface RoleDetailsnull)Copyright © GigaSpaces.