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
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_VALIDATED -
Constructor Summary
ConstructorsConstructorDescriptionEmailReply00Challenge(Login login, 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, triggerMethods inherited from class org.shredzone.acme4j.AcmeJsonResource
getJSON, invalidate, isValid, updateMethods inherited from class org.shredzone.acme4j.AcmeResource
getLocation, getLogin, getSession, rebind
-
Field Details
-
TYPE
Challenge type name: "email-reply-00"- See Also:
-
-
Constructor Details
-
EmailReply00Challenge
Creates a new genericEmailReply00Challengeobject.
-
-
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 classTokenChallenge
-
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 classChallenge
-