Class TokenChallenge

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Dns01Challenge, Http01Challenge, TlsAlpn01Challenge

public class TokenChallenge extends Challenge
A generic extension of Challenge that handles challenges with a token and keyAuthorization.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getToken

      protected String getToken()
      Gets the token.
    • keyAuthorizationFor

      protected String keyAuthorizationFor(String token)
      Computes the key authorization for the given token.

      The default is token + '.' + base64url(jwkThumbprint). Subclasses may override this method if a different algorithm is used.

      Parameters:
      token - Token to be used
      Returns:
      Key Authorization string for that token
      Since:
      2.12
    • getAuthorization

      Returns the authorization string.

      The default uses keyAuthorizationFor(String) to compute the key authorization of getToken(). Subclasses may override this method if a different algorithm is used.