java.lang.Object
org.shredzone.acme4j.AcmeResource
org.shredzone.acme4j.AcmeJsonResource
org.shredzone.acme4j.challenge.Challenge
org.shredzone.acme4j.challenge.TokenChallenge
org.shredzone.acme4j.challenge.Http01Challenge
- All Implemented Interfaces:
Serializable
Implements the "http-01" challenge.
- See Also:
-
Field Summary
Fields inherited from class org.shredzone.acme4j.challenge.TokenChallenge
KEY_TOKEN
Fields inherited from class org.shredzone.acme4j.challenge.Challenge
KEY_ERROR, KEY_STATUS, KEY_TYPE, KEY_URL, KEY_VALIDATED
-
Constructor Summary
ConstructorDescriptionHttp01Challenge
(Login login, JSON data) Creates a new genericHttp01Challenge
object. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
acceptable
(String type) Checks if the type is acceptable to this challenge.getToken()
Returns the token to be used for this challenge.Methods inherited from class org.shredzone.acme4j.challenge.TokenChallenge
getAuthorization, keyAuthorizationFor
Methods inherited from class org.shredzone.acme4j.challenge.Challenge
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
-
Field Details
-
TYPE
Challenge type name: "http-01"- See Also:
-
-
Constructor Details
-
Http01Challenge
Creates a new genericHttp01Challenge
object.
-
-
Method Details
-
getToken
Returns the token to be used for this challenge.- Overrides:
getToken
in classTokenChallenge
-
acceptable
Description copied from class:Challenge
Checks if the type is acceptable to this challenge.- Overrides:
acceptable
in classChallenge
- Parameters:
type
- Type to check- Returns:
true
if acceptable,false
if not
-