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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi
BcKeyStoreSpi.BouncyCastleStore, BcKeyStoreSpi.Std, BcKeyStoreSpi.Version1
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi
random, table, version
-
-
Constructor Summary
Constructors Constructor Description BouncyCastleStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidengineLoad(InputStream stream, char[] password)Loads thisKeyStoreSpifrom the givenInputStream.voidengineStore(OutputStream stream, char[] password)Writes thisKeyStoreSpito the specifiedOutputStream.-
Methods inherited from class org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi
engineAliases, engineContainsAlias, engineDeleteEntry, engineGetCertificate, engineGetCertificateAlias, engineGetCertificateChain, engineGetCreationDate, engineGetKey, engineIsCertificateEntry, engineIsKeyEntry, engineSetCertificateEntry, engineSetKeyEntry, engineSetKeyEntry, engineSize, loadStore, makePBECipher, saveStore, setRandom
-
Methods inherited from class java.security.KeyStoreSpi
engineEntryInstanceOf, engineGetEntry, engineLoad, engineSetEntry, engineStore
-
-
-
-
Method Detail
-
engineLoad
public void engineLoad(InputStream stream, char[] password) throws IOException
Description copied from class:KeyStoreSpiLoads thisKeyStoreSpifrom the givenInputStream. Utilizes the given password to verify the stored data.- Overrides:
engineLoadin classBcKeyStoreSpi- Parameters:
stream- theInputStreamto load thisKeyStoreSpi's data from.password- the password to verify the stored data, maybenull.- 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:KeyStoreSpiWrites thisKeyStoreSpito the specifiedOutputStream. The data written to theOutputStreamis protected by the specified password.- Overrides:
engineStorein classBcKeyStoreSpi- Parameters:
stream- theOutputStreamto write the store's data to.password- the password to protect the data.- Throws:
IOException- if a problem occurred while writing to the stream.
-
-