Class Service

java.lang.Object
com.gigaspaces.security.directory.Service
All Implemented Interfaces:
ServiceUserDetails, UserDetails, Serializable

public class Service extends Object implements ServiceUserDetails
See Also:
  • Constructor Details

    • Service

      public Service()
    • Service

      public Service(String serviceId, String code)
  • Method Details

    • serviceId

      public String serviceId()
      Specified by:
      serviceId in interface ServiceUserDetails
    • getAuthorities

      public Authority[] getAuthorities()
      Description copied from interface: UserDetails
      Returns the granted authorities granted to the user. Cannot return null.
      Specified by:
      getAuthorities in interface UserDetails
      Returns:
      the authorities (never null)
    • getPassword

      public String getPassword()
      Description copied from interface: UserDetails
      Returns the password used to authenticate the user. Cannot return null.
      Specified by:
      getPassword in interface UserDetails
      Returns:
      the password (never null)
    • getUsername

      public String getUsername()
      Description copied from interface: UserDetails
      Returns the username used to authenticate the user. Cannot return null.
      Specified by:
      getUsername in interface UserDetails
      Returns:
      the username (never null)
    • code

      public String code()
      Specified by:
      code in interface ServiceUserDetails
    • toString

      public String toString()
      Overrides:
      toString in class Object