org.nhindirect.stagent.cert
Interface X509Store

All Known Implementing Classes:
CertificateStore

public interface X509Store

Responsible for maintaining and managing a certificate repository.

Author:
Greg Meyer, Umesh Madan

Method Summary
 void add(Collection<X509Certificate> certs)
          Adds a collection of certificates to the store.
 void add(X509Certificate cert)
          Adds a certificate to the store.
 boolean contains(X509Certificate cert)
          Determines if a certificate exists in the certificate store.
 Collection<X509Certificate> getAllCertificates()
          Gets all certificates in the store.
 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.
 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.
 

Method Detail

getCertificates

Collection<X509Certificate> getCertificates(String subjectName)
Gets a collection of certificates where the cert's E or CN field match the subject name.

Parameters:
subjectName - The subject name to search for.
Returns:
A collection of certificates matching the subject name.

contains

boolean contains(X509Certificate cert)
Determines if a certificate exists in the certificate store. Although not specific in the interface definition, certificate thumbprinting is recommended for certificate searching.

Parameters:
cert - The certificate to search for.
Returns:
True if the certificate exist in the store. False otherwise.

add

void add(X509Certificate cert)
Adds a certificate to the store.

Parameters:
cert - The certificate to add to the store.

add

void add(Collection<X509Certificate> certs)
Adds a collection of certificates to the store.

Parameters:
certs - The certificates to add to the store.

remove

void remove(X509Certificate cert)
Removes a certificate from the store.

Parameters:
cert - The certificate to remove from the store.

remove

void remove(Collection<X509Certificate> certs)
Removes a collection certificates from the store.

Parameters:
certs - The certificates to remove from the store.

remove

void remove(String subjectName)
Removes certificates from the store matching the subject name.

Parameters:
subjectName - The subject name of the certificates to remove.

update

void update(X509Certificate cert)
Updates an existing certificate in the store with a new representation of the certificate.

Parameters:
cert - Updates an existing certificate in the store.

update

void update(Collection<X509Certificate> certs)
Updates a collection of existing certificate in the store with a new representations of the certificates.

Parameters:
cert - Updates a collection of existing certificates in the store.

getAllCertificates

Collection<X509Certificate> getAllCertificates()
Gets all certificates in the store.

Returns:
A collection of certificates in the store.


Copyright © 2010-2015 NHIN Direct. All Rights Reserved.