java.lang.Object
org.shredzone.acme4j.AcmeResource
org.shredzone.acme4j.AcmeJsonResource
org.shredzone.acme4j.challenge.Challenge
org.shredzone.acme4j.challenge.TokenChallenge
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Dns01Challenge
,Http01Challenge
,TlsAlpn01Challenge
public class TokenChallenge extends Challenge
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
KEY_TOKEN
Fields inherited from class org.shredzone.acme4j.challenge.Challenge
KEY_ERROR, KEY_STATUS, KEY_TYPE, KEY_URL, KEY_VALIDATED
-
Constructor Summary
Constructors Constructor Description TokenChallenge(Login login, JSON data)
Creates a new genericTokenChallenge
object. -
Method Summary
Modifier and Type Method Description java.lang.String
getAuthorization()
Returns the authorization string.protected java.lang.String
getToken()
Gets the token.Methods inherited from class org.shredzone.acme4j.challenge.Challenge
acceptable, getError, getStatus, getType, getValidated, prepareResponse, setJSON, trigger
Methods inherited from class org.shredzone.acme4j.AcmeJsonResource
getJSON, invalidate, isValid, update
Methods inherited from class org.shredzone.acme4j.AcmeResource
getLocation, getLogin, getSession, rebind
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
KEY_TOKEN
- See Also:
- Constant Field Values
-
-
Constructor Details
-
TokenChallenge
Creates a new genericTokenChallenge
object.
-
-
Method Details
-
getToken
Gets the token. -
getAuthorization
Returns the authorization string.The default is
token + '.' + base64url(jwkThumbprint)
. Subclasses may override this method if a different algorithm is used.
-