Package org.bouncycastle.openssl.jcajce
Class JceOpenSSLPKCS8EncryptorBuilder
java.lang.Object
org.bouncycastle.openssl.jcajce.JceOpenSSLPKCS8EncryptorBuilder
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJceOpenSSLPKCS8EncryptorBuilder
(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setIterationCount
(int iterationCount) setPasssword
(char[] password) Deprecated.Incorrectly spelt - use setPassword()setPassword
(char[] password) setPRF
(org.bouncycastle.asn1.x509.AlgorithmIdentifier prf) Set the PRF to use for key generation.setProvider
(String providerName) setProvider
(Provider provider) setRandom
(SecureRandom random)
-
Field Details
-
AES_128_CBC
-
AES_192_CBC
-
AES_256_CBC
-
DES3_CBC
-
PBE_SHA1_RC4_128
-
PBE_SHA1_RC4_40
-
PBE_SHA1_3DES
-
PBE_SHA1_2DES
-
PBE_SHA1_RC2_128
-
PBE_SHA1_RC2_40
-
-
Constructor Details
-
JceOpenSSLPKCS8EncryptorBuilder
public JceOpenSSLPKCS8EncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)
-
-
Method Details
-
setRandom
-
setPasssword
Deprecated.Incorrectly spelt - use setPassword() -
setPassword
-
setPRF
Set the PRF to use for key generation. By default this is HmacSHA1.- Parameters:
prf
- algorithm id for PRF.- Returns:
- the current builder.
-
setIterationCount
-
setProvider
-
setProvider
-
build
- Throws:
OperatorCreationException
-