|
Bouncy Castle Cryptography 1.11 API Specification: Class JDKKeyStore
org.bouncycastle.jce.provider
Class JDKKeyStore
java.lang.Object
|
+--java.security.KeyStoreSpi
|
+--org.bouncycastle.jce.provider.JDKKeyStore
- Direct Known Subclasses:
- JDKKeyStore.BouncyCastleStore
- public class JDKKeyStore
- extends java.security.KeyStoreSpi
Field Summary |
protected java.security.SecureRandom |
random
|
protected java.util.Hashtable |
table
|
Method Summary |
java.util.Enumeration |
engineAliases()
|
boolean |
engineContainsAlias(java.lang.String alias)
|
void |
engineDeleteEntry(java.lang.String alias)
|
java.security.cert.Certificate |
engineGetCertificate(java.lang.String alias)
|
java.lang.String |
engineGetCertificateAlias(java.security.cert.Certificate cert)
|
java.security.cert.Certificate[] |
engineGetCertificateChain(java.lang.String alias)
|
java.util.Date |
engineGetCreationDate(java.lang.String alias)
|
java.security.Key |
engineGetKey(java.lang.String alias,
char[] password)
|
boolean |
engineIsCertificateEntry(java.lang.String alias)
|
boolean |
engineIsKeyEntry(java.lang.String alias)
|
void |
engineLoad(java.io.InputStream stream,
char[] password)
|
void |
engineSetCertificateEntry(java.lang.String alias,
java.security.cert.Certificate cert)
|
void |
engineSetKeyEntry(java.lang.String alias,
byte[] key,
java.security.cert.Certificate[] chain)
|
void |
engineSetKeyEntry(java.lang.String alias,
java.security.Key key,
char[] password,
java.security.cert.Certificate[] chain)
|
int |
engineSize()
|
void |
engineStore(java.io.OutputStream stream,
char[] password)
|
protected boolean |
isSameAs(byte[] one,
byte[] two)
|
protected void |
loadStore(java.io.InputStream in)
|
protected Cipher |
makePBECipher(java.lang.String algorithm,
int mode,
char[] password,
byte[] salt,
int iterationCount)
|
protected void |
saveStore(java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected java.util.Hashtable table
random
protected java.security.SecureRandom random
JDKKeyStore
public JDKKeyStore()
makePBECipher
protected Cipher makePBECipher(java.lang.String algorithm,
int mode,
char[] password,
byte[] salt,
int iterationCount)
throws java.io.IOException
engineAliases
public java.util.Enumeration engineAliases()
- Overrides:
engineAliases in class java.security.KeyStoreSpi
engineContainsAlias
public boolean engineContainsAlias(java.lang.String alias)
- Overrides:
engineContainsAlias in class java.security.KeyStoreSpi
engineDeleteEntry
public void engineDeleteEntry(java.lang.String alias)
throws java.security.KeyStoreException
- Overrides:
engineDeleteEntry in class java.security.KeyStoreSpi
engineGetCertificate
public java.security.cert.Certificate engineGetCertificate(java.lang.String alias)
- Overrides:
engineGetCertificate in class java.security.KeyStoreSpi
engineGetCertificateAlias
public java.lang.String engineGetCertificateAlias(java.security.cert.Certificate cert)
- Overrides:
engineGetCertificateAlias in class java.security.KeyStoreSpi
engineGetCertificateChain
public java.security.cert.Certificate[] engineGetCertificateChain(java.lang.String alias)
- Overrides:
engineGetCertificateChain in class java.security.KeyStoreSpi
engineGetCreationDate
public java.util.Date engineGetCreationDate(java.lang.String alias)
- Overrides:
engineGetCreationDate in class java.security.KeyStoreSpi
engineGetKey
public java.security.Key engineGetKey(java.lang.String alias,
char[] password)
throws java.security.NoSuchAlgorithmException,
java.security.UnrecoverableKeyException
- Overrides:
engineGetKey in class java.security.KeyStoreSpi
engineIsCertificateEntry
public boolean engineIsCertificateEntry(java.lang.String alias)
- Overrides:
engineIsCertificateEntry in class java.security.KeyStoreSpi
engineIsKeyEntry
public boolean engineIsKeyEntry(java.lang.String alias)
- Overrides:
engineIsKeyEntry in class java.security.KeyStoreSpi
engineSetCertificateEntry
public void engineSetCertificateEntry(java.lang.String alias,
java.security.cert.Certificate cert)
throws java.security.KeyStoreException
- Overrides:
engineSetCertificateEntry in class java.security.KeyStoreSpi
engineSetKeyEntry
public void engineSetKeyEntry(java.lang.String alias,
byte[] key,
java.security.cert.Certificate[] chain)
throws java.security.KeyStoreException
- Overrides:
engineSetKeyEntry in class java.security.KeyStoreSpi
engineSetKeyEntry
public void engineSetKeyEntry(java.lang.String alias,
java.security.Key key,
char[] password,
java.security.cert.Certificate[] chain)
throws java.security.KeyStoreException
- Overrides:
engineSetKeyEntry in class java.security.KeyStoreSpi
engineSize
public int engineSize()
- Overrides:
engineSize in class java.security.KeyStoreSpi
isSameAs
protected boolean isSameAs(byte[] one,
byte[] two)
loadStore
protected void loadStore(java.io.InputStream in)
throws java.io.IOException
saveStore
protected void saveStore(java.io.OutputStream out)
throws java.io.IOException
engineLoad
public void engineLoad(java.io.InputStream stream,
char[] password)
throws java.io.IOException
- Overrides:
engineLoad in class java.security.KeyStoreSpi
engineStore
public void engineStore(java.io.OutputStream stream,
char[] password)
throws java.io.IOException
- Overrides:
engineStore in class java.security.KeyStoreSpi
|