|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.semanticdesktop.aperture.security.trustmanager.standard.RootCertificateStore
public class RootCertificateStore
A CertificateStore that holds the root Certificates. As this set is not mutable by the application itself, this class only provides functionality to load the certificates from a file.
Constructor Summary | |
---|---|
RootCertificateStore(String fileName)
|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RootCertificateStore(String fileName)
Method Detail |
---|
public void load() throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException
CertificateStore
load
in interface CertificateStore
IOException
CertificateException
KeyStoreException
NoSuchAlgorithmException
public void save() throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException
CertificateStore
save
in interface CertificateStore
IOException
CertificateException
KeyStoreException
NoSuchAlgorithmException
public void add(Certificate certificate) throws KeyStoreException
CertificateStore
add
in interface CertificateStore
certificate
- The Certificate to add.
KeyStoreException
public void remove(Certificate certificate) throws KeyStoreException
CertificateStore
remove
in interface CertificateStore
certificate
- The Certificate to remove.
KeyStoreException
public boolean contains(Certificate certificate) throws KeyStoreException
CertificateStore
contains
in interface CertificateStore
certificate
- The Certificate that is tested for presence in this CertificateStore.
KeyStoreException
public boolean verify(Certificate certificate) throws KeyStoreException
CertificateStore
verify
in interface CertificateStore
certificate
- The Certificate to verify.
KeyStoreException
public Iterator iterator() throws KeyStoreException
CertificateStore
iterator
in interface CertificateStore
KeyStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |