Class BearerAuthorizationHeader

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

public class BearerAuthorizationHeader extends Object
Simplest type of Auth header, the bearer header.
  • Constructor Details

    • BearerAuthorizationHeader

      public BearerAuthorizationHeader(String credentials)
      Constructs an new instance of BearerAuthorizationHeader with the supplied credentials.
      Parameters:
      credentials -
  • Method Details

    • getCredentials

      public String getCredentials()
      Gets the credentials associated with this authorization header.
      Returns:
      the credentials
    • asJWTCredentials

      public JWTCredentials asJWTCredentials()
      Gets the credentials as JWT Credentials.
      Returns:
      the credentials as JWT Credentials.