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