org.semanticdesktop.aperture.security.trustmanager.standard
Interface CertificateStore

All Known Implementing Classes:
PersistentCertificateStore, RootCertificateStore, SessionCertificateStore

public interface CertificateStore

The base interface for all certificate stores used by the StandardTrustManager.


Method Summary
 void add(Certificate certificate)
          Add a Certificate to this CertificateStore (optional operation).
 boolean contains(Certificate certificate)
          Returns whether this certificate store contains the specified Certificate (optional operation).
 Iterator iterator()
          Returns an Iterator that iterates over all Certificates in this store.
 void load()
          Loads all certificates belonging to this store (optional operation).
 void remove(Certificate certificate)
          Remove a Certificate from this CertificateStore (optional operation);
 void save()
          Saves all certificates belonging to this store (optional operation).
 boolean verify(Certificate certificate)
          Verifies the supplied Certificate against the certificates in this store (optional operation).
 

Method Detail

load

void load()
          throws IOException,
                 CertificateException,
                 KeyStoreException,
                 NoSuchAlgorithmException
Loads all certificates belonging to this store (optional operation).

Throws:
IOException
CertificateException
KeyStoreException
NoSuchAlgorithmException

save

void save()
          throws IOException,
                 CertificateException,
                 KeyStoreException,
                 NoSuchAlgorithmException
Saves all certificates belonging to this store (optional operation).

Throws:
IOException
CertificateException
KeyStoreException
NoSuchAlgorithmException

add

void add(Certificate certificate)
         throws KeyStoreException
Add a Certificate to this CertificateStore (optional operation).

Parameters:
certificate - The Certificate to add.
Throws:
KeyStoreException

remove

void remove(Certificate certificate)
            throws KeyStoreException
Remove a Certificate from this CertificateStore (optional operation);

Parameters:
certificate - The Certificate to remove.
Throws:
KeyStoreException

contains

boolean contains(Certificate certificate)
                 throws KeyStoreException
Returns whether this certificate store contains the specified Certificate (optional operation).

Parameters:
certificate - The Certificate that is tested for presence in this CertificateStore.
Returns:
'true' when this CertificateStore contains the specified Certificate, 'false' otherwise.
Throws:
KeyStoreException

verify

boolean verify(Certificate certificate)
               throws KeyStoreException
Verifies the supplied Certificate against the certificates in this store (optional operation).

Parameters:
certificate - The Certificate to verify.
Returns:
'true' when the Certificate could successfully be verified, 'false' otherwise.
Throws:
KeyStoreException

iterator

Iterator iterator()
                  throws KeyStoreException
Returns an Iterator that iterates over all Certificates in this store.

Returns:
An Iterator returning Certificate instances.
Throws:
KeyStoreException


Copyright © 2010 Aperture Development Team. All Rights Reserved.