public class NHINDAddress
extends javax.mail.internet.InternetAddress
InternetAddress.| Constructor and Description |
|---|
NHINDAddress(javax.mail.internet.InternetAddress address)
Constructs an address from an
InternetAddress. |
NHINDAddress(javax.mail.internet.InternetAddress address,
AddressSource source)
Constructs an address from an
InternetAddress. |
NHINDAddress(String address)
Constructs an address from a string representation.
|
NHINDAddress(String address,
AddressSource source)
Constructs an address from a string representation.
|
NHINDAddress(String address,
Collection<X509Certificate> certificates)
Constructs an address from a string representation and associates a collection X509Certificates with the address.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
domainEquals(String domain)
Indicates if the address's domain matches the provided domain.
|
Collection<X509Certificate> |
getCertificates()
Gets the X509 certificates associated with the address.
|
String |
getHost()
Gets the domain host associated with the address.
|
static String |
getHost(javax.mail.internet.InternetAddress theAddress)
Gets the domain host associated with the address.
|
AddressSource |
getSource()
Gets the source type of the address such as TO, CC, and BCC.
|
TrustEnforcementStatus |
getStatus()
Gets the trust status of the address.
|
Collection<X509Certificate> |
getTrustAnchors()
Gets all certificate anchors that this address trusts.
|
boolean |
hasCertificates()
Indicates if the address is associated with a certificate.
|
boolean |
hasTrustAnchors()
Indicates if the address has certificate trust anchors associated with it.
|
boolean |
isInDomain(Collection<String> domains)
Indicates if the the address's domain is in the list of domains.
|
boolean |
isTrusted(TrustEnforcementStatus minTrustStatus)
Indicates if the provided trust status is trusted by this address.
|
void |
setCertificates(Collection<X509Certificate> certs)
Associates an X509 certificate with the address.
|
void |
setSource(AddressSource source)
Sets the source type of the address.
|
void |
setStatus(TrustEnforcementStatus value)
Sets the trust status of the address.
|
void |
setTrustAnchors(Collection<X509Certificate> certs)
Sets all certificate anchors that this address trusts.
|
public NHINDAddress(String address)
InternetAddress.address - String representation of an address.public NHINDAddress(javax.mail.internet.InternetAddress address)
InternetAddress.address - The internet address.public NHINDAddress(String address, AddressSource source)
InternetAddress.address - String representation of an address.source - Indicates the type of address respective to the message.public NHINDAddress(javax.mail.internet.InternetAddress address,
AddressSource source)
InternetAddress.address - The internet address.source - Indicates the type of address respective to the message.public NHINDAddress(String address, Collection<X509Certificate> certificates)
InternetAddress.address - String representation of an address.certificates - The certificates to be associated with the address.public String getHost()
public Collection<X509Certificate> getCertificates()
public void setCertificates(Collection<X509Certificate> certs)
value - The certificate to associates with the address.public boolean hasCertificates()
public Collection<X509Certificate> getTrustAnchors()
public void setTrustAnchors(Collection<X509Certificate> certs)
certs - A collection of certificate anchors that are trusted by this address.public boolean hasTrustAnchors()
public TrustEnforcementStatus getStatus()
public void setStatus(TrustEnforcementStatus value)
value - The trust status of the address.public boolean isTrusted(TrustEnforcementStatus minTrustStatus)
minTrustStatus - The trust status to compare with the address' trust status.public AddressSource getSource()
public void setSource(AddressSource source)
source - The source type of the address.public boolean domainEquals(String domain)
domain - The domain to match.public boolean isInDomain(Collection<String> domains)
domains - The domain to check.public static String getHost(javax.mail.internet.InternetAddress theAddress)
theAddress - The address to get the host from.Copyright © 2010-2016 NHIN Direct. All Rights Reserved.