Class EmailIdentifier

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

public class EmailIdentifier extends org.shredzone.acme4j.Identifier
Represents an e-mail identifier.
Since:
2.12
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Type constant for E-Mail identifiers.

    Fields inherited from class org.shredzone.acme4j.Identifier

    TYPE_DNS, TYPE_IP
  • Method Summary

    Modifier and Type
    Method
    Description
    email(jakarta.mail.internet.InternetAddress email)
    Creates a new email identifier for the given address.
    email(String email)
    Creates a new email identifier for the given address.
    jakarta.mail.internet.InternetAddress
    Returns the email address.

    Methods inherited from class org.shredzone.acme4j.Identifier

    allowSubdomainAuth, dns, equals, finalize, getDomain, getIP, getType, getValue, hashCode, ip, ip, toMap, toString, withAncestorDomain

    Methods inherited from class java.lang.Object

    clone, getClass, notify, notifyAll, wait, wait, wait
  • 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:
      org.shredzone.acme4j.exception.AcmeProtocolException - if this is not a valid email identifier.