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
,PollableResource
- Direct Known Subclasses:
Dns01Challenge
,Http01Challenge
,TlsAlpn01Challenge
- See Also:
-
Field Summary
Fields inherited from class org.shredzone.acme4j.challenge.Challenge
KEY_ERROR, KEY_STATUS, KEY_TYPE, KEY_URL, KEY_VALIDATED
Fields inherited from interface org.shredzone.acme4j.PollableResource
DEFAULT_RETRY_AFTER
-
Constructor Summary
ConstructorDescriptionTokenChallenge
(Login login, JSON data) Creates a new genericTokenChallenge
object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the authorization string.protected String
getToken()
Gets the token.protected String
keyAuthorizationFor
(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, trigger, waitForCompletion
Methods inherited from class org.shredzone.acme4j.AcmeJsonResource
fetch, getJSON, getRetryAfter, invalidate, isValid, setRetryAfter, update
Methods inherited from class org.shredzone.acme4j.AcmeResource
finalize, getLocation, getLogin, getSession, rebind
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.shredzone.acme4j.PollableResource
fetch, waitForStatus
-
Field Details
-
KEY_TOKEN
- See Also:
-
-
Constructor Details
-
TokenChallenge
Creates a new genericTokenChallenge
object.
-
-
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.
-