Class BcKeyStoreSpi.BouncyCastleStore

java.lang.Object
java.security.KeyStoreSpi
org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi
org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.BouncyCastleStore
All Implemented Interfaces:
BCKeyStore
Enclosing class:
BcKeyStoreSpi

public static class BcKeyStoreSpi.BouncyCastleStore
extends BcKeyStoreSpi
the BouncyCastle store. This wont work with the key tool as the store is stored encrypted on disk, so the password is mandatory, however if you hard drive is in a bad part of town and you absolutely, positively, don't want nobody peeking at your things, this is the one to use, no problem! After all in a Bouncy Castle nothing can touch you. Also referred to by the alias UBER.
  • Constructor Details

    • BouncyCastleStore

      public BouncyCastleStore()
  • Method Details

    • engineLoad

      public void engineLoad​(InputStream stream, char[] password) throws IOException
      Description copied from class: KeyStoreSpi
      Loads this KeyStoreSpi from the given InputStream. Utilizes the given password to verify the stored data.
      Overrides:
      engineLoad in class BcKeyStoreSpi
      Parameters:
      stream - the InputStream to load this KeyStoreSpi's data from.
      password - the password to verify the stored data, maybe null.
      Throws:
      IOException - if a problem occurred while reading from the stream.
    • engineStore

      public void engineStore​(OutputStream stream, char[] password) throws IOException
      Description copied from class: KeyStoreSpi
      Writes this KeyStoreSpi to the specified OutputStream. The data written to the OutputStream is protected by the specified password.
      Overrides:
      engineStore in class BcKeyStoreSpi
      Parameters:
      stream - the OutputStream to write the store's data to.
      password - the password to protect the data.
      Throws:
      IOException - if a problem occurred while writing to the stream.