Class EmailReply00Challenge

All Implemented Interfaces:
Serializable

Implements the "email-reply-00" challenge.
Since:
2.12
See Also:
  • Field Details

  • Constructor Details

  • 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 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 Challenge