Class RestAuthenticationToken

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

    public class RestAuthenticationToken
    extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken
    Holds the api token, passed by the client via a custom HTTP header
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RestAuthenticationToken​(java.lang.Object principal, java.lang.Object credentials, java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, java.lang.String token)  
      RestAuthenticationToken​(java.lang.String token)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getToken()  
      • Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken

        eraseCredentials, getCredentials, getPrincipal, setAuthenticated
      • Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

        equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Constructor Detail

      • RestAuthenticationToken

        public RestAuthenticationToken​(java.lang.Object principal,
                                       java.lang.Object credentials,
                                       java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
                                       java.lang.String token)
      • RestAuthenticationToken

        public RestAuthenticationToken​(java.lang.String token)
    • Method Detail

      • getToken

        public java.lang.String getToken()