java.lang.Object
org.shredzone.acme4j.Identifier
org.shredzone.acme4j.smime.EmailIdentifier
- All Implemented Interfaces:
Serializable
Represents an e-mail identifier.
- Since:
- 2.12
- See Also:
-
Field Summary
Fields inherited from class org.shredzone.acme4j.Identifier
TYPE_DNS, TYPE_IP
-
Method Summary
Modifier and TypeMethodDescriptionstatic EmailIdentifier
email
(jakarta.mail.internet.InternetAddress email) Creates a new email identifier for the given address.static EmailIdentifier
Creates a new email identifier for the given address.jakarta.mail.internet.InternetAddress
Returns the email address.
-
Field Details
-
TYPE_EMAIL
Type constant for E-Mail identifiers.- See Also:
-
-
Method Details
-
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
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
Returns the email address.- Returns:
InternetAddress
- Throws:
AcmeProtocolException
- if this is not a valid email identifier.
-