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.Dns01Challenge
- All Implemented Interfaces:
Serializable
Implements the "dns-01" challenge.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The prefix of the domain name to be used for the DNS TXT record.static final String
Challenge type name: "dns-01"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
ConstructorDescriptionDns01Challenge
(Login login, JSON data) Creates a new genericDns01Challenge
object. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
acceptable
(String type) Checks if the type is acceptable to this challenge.Returns the digest string to be set in the domain's_acme-challenge
TXT record.static String
Converts a domain identifier to the Resource Record name to be used for the DNS TXT record.static String
toRRName
(Identifier identifier) Converts a domain identifier to the Resource Record name to be used for the DNS TXT record.Methods inherited from class org.shredzone.acme4j.challenge.TokenChallenge
getAuthorization, getToken, 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: "dns-01"- See Also:
-
RECORD_NAME_PREFIX
The prefix of the domain name to be used for the DNS TXT record.- See Also:
-
-
Constructor Details
-
Dns01Challenge
Creates a new genericDns01Challenge
object.
-
-
Method Details
-
toRRName
Converts a domain identifier to the Resource Record name to be used for the DNS TXT record.- Parameters:
identifier
- DomainIdentifier
of the domain to be validated- Returns:
- Resource Record name (e.g.
_acme-challenge.www.example.org.
, note the trailing full stop character). - Since:
- 2.14
-
toRRName
Converts a domain identifier to the Resource Record name to be used for the DNS TXT record.- Parameters:
domain
- Domain name to be validated- Returns:
- Resource Record name (e.g.
_acme-challenge.www.example.org.
, note the trailing full stop character). - Since:
- 2.14
-
getDigest
Returns the digest string to be set in the domain's_acme-challenge
TXT record. -
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
-