GigaSpaces XAP 9.0 API

com.gigaspaces.security.directory
Interface RoleDetails

All Superinterfaces:
Serializable
All Known Implementing Classes:
Role

public interface RoleDetails
extends Serializable

Role details to store role information accessed by the 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.

Since:
7.0.1
Author:
Moran Avigdor

Method Summary
 Authority[] getAuthorities()
          Returns the granted authorities granted to the role.
 String getRole()
          Returns the role name used to identify this role.
 

Method Detail

getAuthorities

Authority[] getAuthorities()
Returns the granted authorities granted to the role. Cannot return null.

Returns:
the authorities (never null)

getRole

String getRole()
Returns the role name used to identify this role. Cannot return null.

Returns:
the role name (never null)

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.