Module org.shredzone.acme4j.smime
Class EmailReply00Challenge
java.lang.Object
org.shredzone.acme4j.AcmeResource
org.shredzone.acme4j.AcmeJsonResource
org.shredzone.acme4j.challenge.Challenge
org.shredzone.acme4j.challenge.TokenChallenge
org.shredzone.acme4j.smime.challenge.EmailReply00Challenge
- All Implemented Interfaces:
Serializable,org.shredzone.acme4j.PollableResource
Implements the "email-reply-00" challenge.
- Since:
- 2.12
- See Also:
-
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
ConstructorsConstructorDescriptionEmailReply00Challenge(org.shredzone.acme4j.Login login, org.shredzone.acme4j.toolbox.JSON data) Creates a new genericEmailReply00Challengeobject. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptable(String type) This method is not implemented.getAuthorization(String part1) Returns the authorization string.jakarta.mail.internet.InternetAddressReturns the email address of the expected sender of the "challenge" mail.getFrom()Returns the email address in the "from" field of the challenge.Returns the token, which is a concatenation of the part 1 that is sent by email, and part 2 that is passed into this callenge viagetTokenPart2();Returns the part 2 of the token to be used for this challenge.Methods inherited from class org.shredzone.acme4j.challenge.TokenChallenge
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: "email-reply-00"- See Also:
-
-
Constructor Details
-
EmailReply00Challenge
public EmailReply00Challenge(org.shredzone.acme4j.Login login, org.shredzone.acme4j.toolbox.JSON data) Creates a new genericEmailReply00Challengeobject.- Parameters:
login-Loginthe resource is bound withdata-JSONchallenge data
-
-
Method Details
-
getFrom
Returns the email address in the "from" field of the challenge.- Returns:
- The "from" email address, as String.
-
getExpectedSender
Returns the email address of the expected sender of the "challenge" mail.This is the same value that is returned by
getFrom(), but asInternetAddressinstance.- Returns:
- Expected sender of the challenge email.
-
getToken
Returns the token, which is a concatenation of the part 1 that is sent by email, and part 2 that is passed into this callenge viagetTokenPart2();- Parameters:
part1- Part 1 of the token, which can be found in the subject of the corresponding challenge email.- Returns:
- Concatenated token
-
getTokenPart2
Returns the part 2 of the token to be used for this challenge. Part 2 is sent via this challenge. -
getAuthorization
This method is not implemented. UsegetAuthorization(String)instead.- Overrides:
getAuthorizationin classorg.shredzone.acme4j.challenge.TokenChallenge
-
getAuthorization
Returns the authorization string.- Parameters:
part1- Part 1 of the token, which can be found in the subject of the corresponding challenge email.
-
acceptable
- Overrides:
acceptablein classorg.shredzone.acme4j.challenge.Challenge
-