public interface RoleDetails extends Serializable
RoleManager
and SecurityManager
. Concrete implementations must take particular care to ensure the non-null contract detailed for each method is enforced.
Concrete implementations should be immutable
(value object semantics, like a String). This is because the RoleDetails
will be
stored in caches and as such multiple threads may use the same instance.
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.
|
Copyright © GigaSpaces.