GigaSpaces XAP 7.0 API

com.gigaspaces.security.directory
Class Role

java.lang.Object
  extended by 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

Constructor Summary
Role(String role)
           
Role(String role, Authority... authorities)
           
Role(String role, String... authorities)
           
 
Method Summary
 Authority[] getAuthorities()
          Returns the granted authorities granted to the role.
 String getRole()
          Returns the role name used to identify this role.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Role

public Role(String role)

Role

public Role(String role,
            Authority... authorities)

Role

public Role(String role,
            String... authorities)
Method Detail

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)

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.