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

public class EmailReply00Challenge extends org.shredzone.acme4j.challenge.TokenChallenge
Implements the "email-reply-00" challenge.
Since:
2.12
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Challenge type name: "email-reply-00"

    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

    Fields inherited from interface org.shredzone.acme4j.PollableResource

    DEFAULT_RETRY_AFTER
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmailReply00Challenge(org.shredzone.acme4j.Login login, org.shredzone.acme4j.toolbox.JSON data)
    Creates a new generic EmailReply00Challenge object.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    This method is not implemented.
    Returns the authorization string.
    jakarta.mail.internet.InternetAddress
    Returns the email address of the expected sender of the "challenge" mail.
    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 via getTokenPart2();
    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, waitForCompletion

    Methods inherited from class org.shredzone.acme4j.AcmeJsonResource

    fetch, getJSON, getRetryAfter, invalidate, isValid, setRetryAfter

    Methods inherited from class org.shredzone.acme4j.AcmeResource

    finalize, getLocation, getLogin, getSession, rebind

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.shredzone.acme4j.PollableResource

    fetch, waitForStatus
  • Field Details

  • Constructor Details

    • EmailReply00Challenge

      public EmailReply00Challenge(org.shredzone.acme4j.Login login, org.shredzone.acme4j.toolbox.JSON data)
      Creates a new generic EmailReply00Challenge object.
      Parameters:
      login - Login the resource is bound with
      data - JSON challenge data
  • Method Details

    • getFrom

      public String getFrom()
      Returns the email address in the "from" field of the challenge.
      Returns:
      The "from" email address, as String.
    • getExpectedSender

      public jakarta.mail.internet.InternetAddress getExpectedSender()
      Returns the email address of the expected sender of the "challenge" mail.

      This is the same value that is returned by getFrom(), but as InternetAddress instance.

      Returns:
      Expected sender of the challenge email.
    • getToken

      public String getToken(String part1)
      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 via getTokenPart2();
      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. Use getAuthorization(String) instead.
      Overrides:
      getAuthorization in class org.shredzone.acme4j.challenge.TokenChallenge
    • getAuthorization

      public String getAuthorization(String part1)
      Returns the authorization string.
      Parameters:
      part1 - Part 1 of the token, which can be found in the subject of the corresponding challenge email.
    • acceptable

      protected boolean acceptable(String type)
      Overrides:
      acceptable in class org.shredzone.acme4j.challenge.Challenge