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
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
ConstructorDescriptionEmailReply00Challenge
(Login login, JSON data) Creates a new genericEmailReply00Challenge
object. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
acceptable
(String type) This method is not implemented.getAuthorization
(String part1) Returns the authorization string.jakarta.mail.internet.InternetAddress
Returns 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, 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: "email-reply-00"- See Also:
-
-
Constructor Details
-
EmailReply00Challenge
Creates a new genericEmailReply00Challenge
object.
-
-
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 asInternetAddress
instance.- 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:
getAuthorization
in 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:
acceptable
in classChallenge
-