- 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_EMAIL
Type constant for E-Mail identifiers.-
Fields inherited from class org.shredzone.acme4j.Identifier
TYPE_DNS, TYPE_IP
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EmailIdentifier
email(jakarta.mail.internet.InternetAddress email)
Creates a new email identifier for the given address.static EmailIdentifier
email(String email)
Creates a new email identifier for the given address.jakarta.mail.internet.InternetAddress
getEmailAddress()
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
-
-
-
-
Field Detail
-
TYPE_EMAIL
public static final String TYPE_EMAIL
Type constant for E-Mail identifiers.- See Also:
- RFC 8823, Constant Field Values
-
-
Method Detail
-
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.
-
-