Class CustomJWTCredentials

java.lang.Object
dev.getelements.elements.security.CustomJWTCredentials

public class CustomJWTCredentials extends Object
JWT Credentials used with custom auth schemes.
  • Field Details

  • Constructor Details

    • CustomJWTCredentials

      public CustomJWTCredentials(JWTCredentials credentials)
      Creates a CustomJWTCredentials from the supplied DecodedJWT. Throwing the appropriate exception if the JWT cannot be understood.
      Parameters:
      credentials - the credentials
  • Method Details

    • getSubject

      public String getSubject()
      Gets the subject of the
      Returns:
      gets the subject.
    • getUserKey

      public UserKey getUserKey()
      Gets the UserKey.
      Returns:
      the user key
    • getUser

      public Map<String,Object> getUser()
      Gets the raw user as Map
      Returns:
      the raw user object.
    • getCredentials

      public JWTCredentials getCredentials()
      Gets the JWTCredentials that was used to make this instance.
      Returns:
      the JWTCredentials