Bouncy Castle Cryptography Library 1.85

org.bouncycastle.pkcs.bc
Class BcPKCS12PBEInputDecryptorProviderBuilder

java.lang.Object
  extended byorg.bouncycastle.pkcs.bc.BcPKCS12PBEInputDecryptorProviderBuilder

public class BcPKCS12PBEInputDecryptorProviderBuilder
extends java.lang.Object

Lightweight builder for an InputDecryptorProvider that handles the PKCS#12 password-based encryption schemes from RFC 7292 Appendix C (e.g. ).


Constructor Summary
BcPKCS12PBEInputDecryptorProviderBuilder()
          Default constructor — uses SHA-1 for the PKCS#12 KDF.
BcPKCS12PBEInputDecryptorProviderBuilder(org.bouncycastle.crypto.ExtendedDigest digest)
          Construct a builder that uses an explicit digest for the PKCS#12 KDF.
 
Method Summary
 InputDecryptorProvider build(char[] password)
          Bind the builder to a password and return an InputDecryptorProvider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BcPKCS12PBEInputDecryptorProviderBuilder

public BcPKCS12PBEInputDecryptorProviderBuilder()
Default constructor — uses SHA-1 for the PKCS#12 KDF.


BcPKCS12PBEInputDecryptorProviderBuilder

public BcPKCS12PBEInputDecryptorProviderBuilder(org.bouncycastle.crypto.ExtendedDigest digest)
Construct a builder that uses an explicit digest for the PKCS#12 KDF.

Parameters:
digest - the digest implementation to drive the key derivation.
Method Detail

build

public InputDecryptorProvider build(char[] password)
Bind the builder to a password and return an InputDecryptorProvider.

Parameters:
password - the password used to derive the encryption key.
Returns:
a configured decryptor provider.

Bouncy Castle Cryptography Library 1.85