|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticdesktop.aperture.security.trustmanager.standard.PersistentCertificateStore
public class PersistentCertificateStore
A CertificateStore that can save its certificates to and load them from a file.
PersistentCertificateStore internally used a KeyStore to contain its Certificates and optionally applies a password during load and save. See the KeyStore API documentation for information on how this password is applied.
KeyStore| Constructor Summary | |
|---|---|
PersistentCertificateStore(File certificatesFile,
char[] password)
|
|
| 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). |
char[] |
getPassword()
|
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). |
void |
setPassword(char[] password)
|
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 PersistentCertificateStore(File certificatesFile,
char[] password)
| Method Detail |
|---|
public void setPassword(char[] password)
public char[] getPassword()
public void load()
throws IOException,
CertificateException,
KeyStoreException,
NoSuchAlgorithmException
CertificateStore
load in interface CertificateStoreIOException
CertificateException
KeyStoreException
NoSuchAlgorithmException
public void save()
throws IOException,
CertificateException,
KeyStoreException,
NoSuchAlgorithmException
CertificateStore
save in interface CertificateStoreIOException
CertificateException
KeyStoreException
NoSuchAlgorithmException
public void add(Certificate certificate)
throws KeyStoreException
CertificateStore
add in interface CertificateStorecertificate - The Certificate to add.
KeyStoreException
public void remove(Certificate certificate)
throws KeyStoreException
CertificateStore
remove in interface CertificateStorecertificate - The Certificate to remove.
KeyStoreException
public boolean contains(Certificate certificate)
throws KeyStoreException
CertificateStore
contains in interface CertificateStorecertificate - The Certificate that is tested for presence in this CertificateStore.
KeyStoreException
public boolean verify(Certificate certificate)
throws KeyStoreException
CertificateStore
verify in interface CertificateStorecertificate - The Certificate to verify.
KeyStoreException
public Iterator iterator()
throws KeyStoreException
CertificateStore
iterator in interface CertificateStoreKeyStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||