com.gigaspaces.security.directory
Class Role
java.lang.Object
  
com.gigaspaces.security.directory.Role
- All Implemented Interfaces: 
 - RoleDetails, Serializable
 
public class Role
- extends Object
- implements RoleDetails
  
Models role details retrieved by RoleManager.
 
 Implementors may use this class directly, subclass it, or write their own RoleDetails
 implementation from scratch.
 
- Since:
 
  - 7.0.1
 
- Author:
 
  - Moran Avigdor
 
- See Also:
 - Serialized Form
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Role
public Role(String role)
Role
public Role(String role,
            Authority... authorities)
Role
public Role(String role,
            String... authorities)
getAuthorities
public Authority[] getAuthorities()
- Description copied from interface: 
RoleDetails 
- Returns the granted authorities granted to the role. Cannot return 
null.
- Specified by:
 getAuthorities in interface RoleDetails
 
- Returns:
 - the authorities (never 
null) 
 
 
getRole
public String getRole()
- Description copied from interface: 
RoleDetails 
- Returns the role name used to identify this role. Cannot return 
null.
- Specified by:
 getRole in interface RoleDetails
 
- Returns:
 - the role name (never 
null) 
 
 
Copyright © GigaSpaces.