public abstract class CertificateStore extends Object implements X509Store, CertificateResolver
| Constructor and Description |
|---|
CertificateStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<X509Certificate> certs)
Adds a collection of certificates to the store.
|
abstract void |
add(X509Certificate cert)
Adds a certificate to the store.
|
abstract boolean |
contains(X509Certificate cert)
Determines if a certificate exists in the certificate store.
|
abstract Collection<X509Certificate> |
getAllCertificates()
Gets all certificates in the store.
|
Collection<X509Certificate> |
getCertificates(javax.mail.internet.InternetAddress address)
Retrieves a collection of certificates for a given InternetAddress.
|
Collection<X509Certificate> |
getCertificates(String subjectName)
Gets a collection of certificates where the cert's E or CN field match the subject name.
|
void |
remove(Collection<X509Certificate> certs)
Removes a collection certificates from the store.
|
void |
remove(String subjectName)
Removes certificates from the store matching the subject name.
|
abstract void |
remove(X509Certificate cert)
Removes a certificate from the store.
|
void |
update(Collection<X509Certificate> certs)
Updates a collection of existing certificate in the store with a new representations of the certificates.
|
void |
update(X509Certificate cert)
Updates an existing certificate in the store with a new representation of the certificate.
|
public abstract boolean contains(X509Certificate cert)
public abstract void add(X509Certificate cert)
public abstract void remove(X509Certificate cert)
public Collection<X509Certificate> getCertificates(String subjectName)
getCertificates in interface X509StoresubjectName - The subject name to search for.public void add(Collection<X509Certificate> certs)
public void remove(Collection<X509Certificate> certs)
public void remove(String subjectName)
public void update(X509Certificate cert)
public void update(Collection<X509Certificate> certs)
public abstract Collection<X509Certificate> getAllCertificates()
getAllCertificates in interface X509Storepublic Collection<X509Certificate> getCertificates(javax.mail.internet.InternetAddress address)
getCertificates in interface CertificateResolveraddress - The InternetAddress used to lookup the certificate.Copyright © 2010-2016 NHIN Direct. All Rights Reserved.