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:
  • Constructor Details

  • Method Details

    • 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)