org.bouncycastle.jce.provider
public class JDKPKCS12KeyStore extends KeyStoreSpi implements PKCSObjectIdentifiers, X509ObjectIdentifiers, BCKeyStore
| Nested Class Summary | |
|---|---|
| static class | JDKPKCS12KeyStore.BCPKCS12KeyStore |
| static class | JDKPKCS12KeyStore.DefPKCS12KeyStore |
| Field Summary | |
|---|---|
| protected SecureRandom | random |
| Constructor Summary | |
|---|---|
| JDKPKCS12KeyStore(String provider) | |
| Method Summary | |
|---|---|
| protected ASN1Sequence | decryptData(AlgorithmIdentifier algId, byte[] data, char[] password, boolean wrongPKCS12Zero) |
| protected byte[] | encryptData(String algorithm, byte[] data, PKCS12PBEParams pbeParams, char[] password) |
| Enumeration | engineAliases() |
| boolean | engineContainsAlias(String alias) |
| void | engineDeleteEntry(String alias)
this is quite complete - we should follow up on the chain, a bit
tricky if a certificate appears in more than one chain... |
| Certificate | engineGetCertificate(String alias)
simply return the cert for the private key |
| String | engineGetCertificateAlias(Certificate cert) |
| Certificate[] | engineGetCertificateChain(String alias) |
| Date | engineGetCreationDate(String alias) |
| Key | engineGetKey(String alias, char[] password) |
| boolean | engineIsCertificateEntry(String alias) |
| boolean | engineIsKeyEntry(String alias) |
| void | engineLoad(InputStream stream, char[] password) |
| void | engineSetCertificateEntry(String alias, Certificate cert) |
| void | engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) |
| void | engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) |
| int | engineSize() |
| void | engineStore(OutputStream stream, char[] password) |
| void | setRandom(SecureRandom rand) |
| protected PrivateKey | unwrapKey(AlgorithmIdentifier algId, byte[] data, char[] password, boolean wrongPKCS12Zero) |
| protected byte[] | wrapKey(String algorithm, Key key, PKCS12PBEParams pbeParams, char[] password) |