Class EmailIdentifier

java.lang.Object
org.shredzone.acme4j.Identifier
org.shredzone.acme4j.smime.EmailIdentifier
All Implemented Interfaces:
Serializable

public class EmailIdentifier extends Identifier
Represents an e-mail identifier.
Since:
2.12
See Also:
  • Field Details

  • Method Details

    • email

      public static EmailIdentifier email(String email)
      Creates a new email identifier for the given address.
      Parameters:
      email - Email address. Must only be the address itself (without personal name).
      Returns:
      New EmailIdentifier
    • email

      public static EmailIdentifier email(jakarta.mail.internet.InternetAddress email)
      Creates a new email identifier for the given address.
      Parameters:
      email - Email address. Only the address itself is used. The personal name will be ignored.
      Returns:
      New EmailIdentifier
    • getEmailAddress

      public jakarta.mail.internet.InternetAddress getEmailAddress()
      Returns the email address.
      Returns:
      InternetAddress
      Throws:
      AcmeProtocolException - if this is not a valid email identifier.