Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.21
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.jce.provider
Class JDKKeyStore

    java.lang.Object
      |
      +--java.security.KeyStoreSpi
            |
            +--org.bouncycastle.jce.provider.JDKKeyStore

All Implemented Interfaces:
  BCKeyStore

Direct Known Subclasses:
  JDKKeyStore.BouncyCastleStore

public class JDKKeyStore
extends KeyStoreSpi
implements BCKeyStore

Nested Class Summary
`static class` | `JDKKeyStore.BouncyCastleStore` the BouncyCastle store.

Field Summary
`protected java.security.SecureRandom` | `random`
`protected java.util.Hashtable` | `table`

Constructor Summary
`JDKKeyStore()`

Method Summary
`java.util.Enumeration` | `engineAliases()`
`boolean` | `engineContainsAlias(java.lang.String alias)`
`void` | `engineDeleteEntry(java.lang.String alias)`
`Certificate` | `engineGetCertificate(java.lang.String alias)`
`java.lang.String` | `engineGetCertificateAlias(Certificate 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, Certificate cert)`
`void` | `engineSetKeyEntry(java.lang.String alias, byte[] key, Certificate[] chain)`
`void` | `engineSetKeyEntry(java.lang.String alias, java.security.Key key, char[] password, 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)`
`void` | `setRandom(java.security.SecureRandom rand)` set the random source for the key store

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### table

    protected java.util.Hashtable table

### random

    protected java.security.SecureRandom random

Constructor Detail

### JDKKeyStore

    public JDKKeyStore()

Method Detail

### makePBECipher

    protected Cipher makePBECipher(java.lang.String algorithm,
                                   int mode,
                                   char[] password,
                                   byte[] salt,
                                   int iterationCount)
                            throws java.io.IOException

    `java.io.IOException`

### setRandom

    public void setRandom(java.security.SecureRandom rand)

  Description copied from interface: `BCKeyStore`
  set the random source for the key store

  Specified by:
    `setRandom` in interface `BCKeyStore`

### engineAliases

    public java.util.Enumeration engineAliases()

  Specified by:
    `engineAliases` in class `KeyStoreSpi`

### engineContainsAlias

    public boolean engineContainsAlias(java.lang.String alias)

  Specified by:
    `engineContainsAlias` in class `KeyStoreSpi`

### engineDeleteEntry

    public void engineDeleteEntry(java.lang.String alias)
                           throws KeyStoreException

  Specified by:
    `engineDeleteEntry` in class `KeyStoreSpi`
    `KeyStoreException`

### engineGetCertificate

    public Certificate engineGetCertificate(java.lang.String alias)

  Specified by:
    `engineGetCertificate` in class `KeyStoreSpi`

### engineGetCertificateAlias

    public java.lang.String engineGetCertificateAlias(Certificate cert)

  Specified by:
    `engineGetCertificateAlias` in class `KeyStoreSpi`

### engineGetCertificateChain

    public Certificate[] engineGetCertificateChain(java.lang.String alias)

  Specified by:
    `engineGetCertificateChain` in class `KeyStoreSpi`

### engineGetCreationDate

    public java.util.Date engineGetCreationDate(java.lang.String alias)

  Specified by:
    `engineGetCreationDate` in class `KeyStoreSpi`

### engineGetKey

    public java.security.Key engineGetKey(java.lang.String alias,
                                          char[] password)
                                   throws java.security.NoSuchAlgorithmException,
                                          UnrecoverableKeyException

  Specified by:
    `engineGetKey` in class `KeyStoreSpi`
    `java.security.NoSuchAlgorithmException`
    `UnrecoverableKeyException`

### engineIsCertificateEntry

    public boolean engineIsCertificateEntry(java.lang.String alias)

  Specified by:
    `engineIsCertificateEntry` in class `KeyStoreSpi`

### engineIsKeyEntry

    public boolean engineIsKeyEntry(java.lang.String alias)

  Specified by:
    `engineIsKeyEntry` in class `KeyStoreSpi`

### engineSetCertificateEntry

    public void engineSetCertificateEntry(java.lang.String alias,
                                          Certificate cert)
                                   throws KeyStoreException

  Specified by:
    `engineSetCertificateEntry` in class `KeyStoreSpi`
    `KeyStoreException`

### engineSetKeyEntry

    public void engineSetKeyEntry(java.lang.String alias,
                                  byte[] key,
                                  Certificate[] chain)
                           throws KeyStoreException

  Specified by:
    `engineSetKeyEntry` in class `KeyStoreSpi`
    `KeyStoreException`

### engineSetKeyEntry

    public void engineSetKeyEntry(java.lang.String alias,
                                  java.security.Key key,
                                  char[] password,
                                  Certificate[] chain)
                           throws KeyStoreException

  Specified by:
    `engineSetKeyEntry` in class `KeyStoreSpi`
    `KeyStoreException`

### engineSize

    public int engineSize()

  Specified by:
    `engineSize` in class `KeyStoreSpi`

### isSameAs

    protected boolean isSameAs(byte[] one,
                               byte[] two)

### loadStore

    protected void loadStore(java.io.InputStream in)
                      throws java.io.IOException

    `java.io.IOException`

### saveStore

    protected void saveStore(java.io.OutputStream out)
                      throws java.io.IOException

    `java.io.IOException`

### engineLoad

    public void engineLoad(java.io.InputStream stream,
                           char[] password)
                    throws java.io.IOException

  Specified by:
    `engineLoad` in class `KeyStoreSpi`
    `java.io.IOException`

### engineStore

    public void engineStore(java.io.OutputStream stream,
                            char[] password)
                     throws java.io.IOException

  Specified by:
    `engineStore` in class `KeyStoreSpi`
    `java.io.IOException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.21
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD