java.lang.Object
org.shredzone.acme4j.AcmeResource
org.shredzone.acme4j.AcmeJsonResource
org.shredzone.acme4j.challenge.Challenge
org.shredzone.acme4j.challenge.TokenChallenge
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Dns01Challenge,Http01Challenge,TlsAlpn01Challenge
- See Also:
-
Field Summary
FieldsFields inherited from class org.shredzone.acme4j.challenge.Challenge
KEY_ERROR, KEY_STATUS, KEY_TYPE, KEY_URL, KEY_VALIDATED -
Constructor Summary
ConstructorsConstructorDescriptionTokenChallenge(Login login, JSON data) Creates a new genericTokenChallengeobject. -
Method Summary
Modifier and TypeMethodDescriptionReturns the authorization string.protected StringgetToken()Gets the token.protected StringkeyAuthorizationFor(String token) Computes the key authorization for the given token.Methods inherited from class org.shredzone.acme4j.challenge.Challenge
acceptable, getError, getStatus, getType, getValidated, prepareResponse, setJSON, triggerMethods inherited from class org.shredzone.acme4j.AcmeJsonResource
getJSON, invalidate, isValid, updateMethods inherited from class org.shredzone.acme4j.AcmeResource
getLocation, getLogin, getSession, rebind
-
Field Details
-
KEY_TOKEN
- See Also:
-
-
Constructor Details
-
TokenChallenge
Creates a new genericTokenChallengeobject.
-
-
Method Details
-
getToken
Gets the token. -
keyAuthorizationFor
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 ofgetToken(). Subclasses may override this method if a different algorithm is used.
-