Class AuthenticationJsonWebToken

java.lang.Object
com.auth0.spring.security.api.authentication.AuthenticationJsonWebToken
All Implemented Interfaces:
JwtAuthentication, Serializable, Principal, org.springframework.security.core.Authentication

public class AuthenticationJsonWebToken extends Object implements org.springframework.security.core.Authentication, JwtAuthentication
See Also:
  • Method Details

    • getToken

      public String getToken()
      Specified by:
      getToken in interface JwtAuthentication
    • getKeyId

      public String getKeyId()
      Specified by:
      getKeyId in interface JwtAuthentication
    • verify

      public org.springframework.security.core.Authentication verify(com.auth0.jwt.JWTVerifier verifier) throws com.auth0.jwt.exceptions.JWTVerificationException
      Specified by:
      verify in interface JwtAuthentication
      Throws:
      com.auth0.jwt.exceptions.JWTVerificationException
    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.Authentication
    • getCredentials

      public Object getCredentials()
      Specified by:
      getCredentials in interface org.springframework.security.core.Authentication
    • getDetails

      public Object getDetails()
      Specified by:
      getDetails in interface org.springframework.security.core.Authentication
    • getPrincipal

      public Object getPrincipal()
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
    • isAuthenticated

      public boolean isAuthenticated()
      Specified by:
      isAuthenticated in interface org.springframework.security.core.Authentication
    • setAuthenticated

      public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
      Specified by:
      setAuthenticated in interface org.springframework.security.core.Authentication
      Throws:
      IllegalArgumentException
    • getName

      public String getName()
      Specified by:
      getName in interface Principal