public interface ExtraCertManager
Modifier and Type | Method and Description |
---|---|
void |
addPermanentCert(Certificate cert)
Add a certificate that will be accepted until this manager is "purged".
|
void |
addTemporaryCert(Certificate cert)
Add a certificate that will be accepted until some event (as determined
by the implementation of this interface) occurs, causing it to be
"forgotten".
|
KeyStore |
asKeyStore()
Return a representation of this manager as a KeyStore instance.
|
void |
purgeAllCerts()
Remove all certificates that have been added either by
addTemporaryCert(Certificate) or
addPermanentCert(Certificate) . |
void |
purgePermanentCerts()
Remove all certificates that have been added via
addPermanentCert(Certificate) . |
void |
purgeTemporaryCerts()
Remove all certificates that have been added via
addTemporaryCert(Certificate) . |
void addTemporaryCert(Certificate cert) throws IOException, GeneralSecurityException
cert
- IOException
GeneralSecurityException
void addPermanentCert(Certificate cert) throws IOException, GeneralSecurityException
cert
- IOException
GeneralSecurityException
void purgeTemporaryCerts() throws IOException, GeneralSecurityException
addTemporaryCert(Certificate)
.IOException
GeneralSecurityException
void purgePermanentCerts() throws IOException, GeneralSecurityException
addPermanentCert(Certificate)
.IOException
GeneralSecurityException
void purgeAllCerts() throws IOException, GeneralSecurityException
addTemporaryCert(Certificate)
or
addPermanentCert(Certificate)
.IOException
GeneralSecurityException
KeyStore asKeyStore() throws GeneralSecurityException
GeneralSecurityException
Copyright © 2004-2017. All Rights Reserved.