|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<NHINDAddress>
org.nhindirect.stagent.NHINDAddressCollection
public class NHINDAddressCollection
A collection of NHINDAddresses.
| Field Summary | |
|---|---|
static TrustEnforcementStatus |
DefaultMinTrustStatus
|
| Constructor Summary | |
|---|---|
NHINDAddressCollection()
Constructs an empty collection. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
public static final TrustEnforcementStatus DefaultMinTrustStatus
| Constructor Detail |
|---|
public NHINDAddressCollection()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||