Class BcPKCS12PBEInputDecryptorProviderBuilder
java.lang.Object
org.bouncycastle.pkcs.bc.BcPKCS12PBEInputDecryptorProviderBuilder
Lightweight builder for an
InputDecryptorProvider that handles the PKCS#12 password-based
encryption schemes from RFC 7292 Appendix C (e.g. pbeWithSHAAnd3-KeyTripleDES-CBC).-
Constructor Summary
ConstructorsConstructorDescriptionDefault 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
Modifier and TypeMethodDescriptionbuild(char[] password) Bind the builder to a password and return anInputDecryptorProvider.
-
Constructor Details
-
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 Details
-
build
Bind the builder to a password and return anInputDecryptorProvider.- Parameters:
password- the password used to derive the encryption key.- Returns:
- a configured decryptor provider.
-