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.DnsAccount01Challenge
- All Implemented Interfaces:
Serializable,PollableResource
Implements the "dns-account-01" challenge. It requires a specific DNS record for domain
validation. See the acme4j documentation for a detailed explanation.
- Since:
- 4.0.0
- See Also:
- Draft:
- This class is currently based on an RFC draft. It may be changed or removed without notice to reflect future changes to the draft. SemVer rules do not apply here.
-
Field Summary
FieldsFields inherited from class org.shredzone.acme4j.challenge.TokenChallenge
KEY_TOKENFields inherited from class org.shredzone.acme4j.challenge.Challenge
KEY_ERROR, KEY_STATUS, KEY_TYPE, KEY_URL, KEY_VALIDATEDFields inherited from interface org.shredzone.acme4j.PollableResource
DEFAULT_RETRY_AFTER -
Constructor Summary
ConstructorsConstructorDescriptionDnsAccount01Challenge(Login login, JSON data) Creates a new genericDnsAccount01Challengeobject. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptable(String type) Checks if the type is acceptable to this challenge.Returns the digest string to be set in the domain's TXT record.Converts a domain identifier to the Resource Record name to be used for the DNS TXT record.getRRName(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, keyAuthorizationForMethods inherited from class org.shredzone.acme4j.challenge.Challenge
getError, getStatus, getType, getValidated, prepareResponse, setJSON, trigger, waitForCompletionMethods inherited from class org.shredzone.acme4j.AcmeJsonResource
fetch, getJSON, getRetryAfter, invalidate, isValid, setRetryAfterMethods inherited from class org.shredzone.acme4j.AcmeResource
finalize, getLocation, getLogin, getSession, rebindMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.shredzone.acme4j.PollableResource
fetch, waitForStatus
-
Field Details
-
TYPE
Challenge type name: "dns-account-01"- See Also:
-
-
Constructor Details
-
DnsAccount01Challenge
Creates a new genericDnsAccount01Challengeobject.
-
-
Method Details
-
getRRName
Converts a domain identifier to the Resource Record name to be used for the DNS TXT record.- Parameters:
identifier-Identifierto be validated- Returns:
- Resource Record name (e.g.
_ujmmovf2vn55tgye._acme-challenge.example.org., note the trailing full stop character).
-
getRRName
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.
_ujmmovf2vn55tgye._acme-challenge.example.org., note the trailing full stop character).
-
getDigest
Returns the digest string to be set in the domain's TXT record. -
acceptable
Description copied from class:ChallengeChecks if the type is acceptable to this challenge. This generic class only checks if the type is not blank. Subclasses should instead check if the given type matches expected challenge type.- Overrides:
acceptablein classChallenge- Parameters:
type- Type to check- Returns:
trueif acceptable,falseif not
-