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()
RoleDetails
null
.getAuthorities
in interface RoleDetails
null
)public String getRole()
RoleDetails
null
.getRole
in interface RoleDetails
null
)Copyright © GigaSpaces.