public class NHINDAddressCollection extends ArrayList<NHINDAddress>
| Modifier and Type | Field and Description |
|---|---|
static TrustEnforcementStatus |
DefaultMinTrustStatus |
| Constructor and Description |
|---|
NHINDAddressCollection()
Constructs an empty collection.
|
| Modifier and Type | Method and Description |
|---|---|
static NHINDAddressCollection |
create(Collection<NHINDAddress> source)
Generates an instance of an NHINDAddressCollection from a collection of NHINDAddress addresses.
|
Collection<X509Certificate> |
getCertificates()
Gets a collection of all certificates associated with all of the addresses in the collection.
|
X509Certificate |
getFirstCertificate()
Gets the first available certificate the certificate collection.
|
Collection<NHINDAddress> |
getTrusted()
Gets all addresses in the collection that are trusted.
|
Collection<NHINDAddress> |
getTrusted(TrustEnforcementStatus minTrustStatus)
Gets all addresses in the collection that meet the minimum trust status.
|
Collection<NHINDAddress> |
getUntrusted()
Gets all addresses in the collection that are not trusted.
|
Collection<NHINDAddress> |
getUntrusted(TrustEnforcementStatus minTrustStatus)
Gets all addresses in the collection that do not meet the minimum trust status.
|
boolean |
isTrusted()
Indicates if the collection has any addresses that are trusted.
|
boolean |
isTrusted(TrustEnforcementStatus minTrustStatus)
Indicates if the collection has any addresses that meet the minimum trust status.
|
static NHINDAddressCollection |
parse(String addressesLine,
AddressSource source)
Parses an message router header to a collection of address.
|
void |
removeUntrusted()
Removes all addresses from the collection that are note trusted.
|
void |
removeUntrusted(TrustEnforcementStatus minTrustStatus)
Removes all addresses from the collection that do not meet the minimum trust status.
|
void |
setSource(AddressSource source)
Sets the address source type of all addresses in the collection.
|
Collection<javax.mail.internet.InternetAddress> |
toInternetAddressCollection()
Converts the collection an instance of a Collection
|
String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAllcontainsAll, equals, hashCodepublic static final TrustEnforcementStatus DefaultMinTrustStatus
public NHINDAddressCollection()
public Collection<X509Certificate> getCertificates()
public X509Certificate getFirstCertificate()
public Collection<NHINDAddress> getTrusted()
public Collection<NHINDAddress> getTrusted(TrustEnforcementStatus minTrustStatus)
minTrustStatus - The minimum trust status.public Collection<NHINDAddress> getUntrusted()
public Collection<NHINDAddress> getUntrusted(TrustEnforcementStatus minTrustStatus)
minTrustStatus - The minimum trust status.public boolean isTrusted()
public boolean isTrusted(TrustEnforcementStatus minTrustStatus)
minTrustStatus - The minimum trust status.public void removeUntrusted()
public void removeUntrusted(TrustEnforcementStatus minTrustStatus)
public Collection<javax.mail.internet.InternetAddress> toInternetAddressCollection()
public void setSource(AddressSource source)
source - The address source type to apply to all addresses in the collection.public String toString()
toString in class AbstractCollection<NHINDAddress>public static NHINDAddressCollection create(Collection<NHINDAddress> source)
source - A collection of NHINDAddress addresses to seed this object with.public static NHINDAddressCollection parse(String addressesLine, AddressSource source)
addressesLine - The raw message header. The header name does not need to be included, but should use the proper header delimiter
if it is included.source - The address source type of the address line.Copyright © 2010-2016 NHIN Direct. All Rights Reserved.