Class Token

java.lang.Object
com.gigaspaces.security.directory.Token
All Implemented Interfaces:
TokenUserDetails, UserDetails, Serializable

public class Token extends Object implements TokenUserDetails
See Also:
  • Constructor Details

    • Token

      public Token(String token)
  • Method Details

    • token

      public String token()
      Specified by:
      token in interface TokenUserDetails
    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object