|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.operator.bc.BcPBESecretKeyEncryptorBuilder
Constructor Summary | |
BcPBESecretKeyEncryptorBuilder(int encAlgorithm)
|
|
BcPBESecretKeyEncryptorBuilder(int encAlgorithm,
int s2kCount)
Create an SecretKeyEncryptorBuilder with the S2K count different to the default of 0x60. |
|
BcPBESecretKeyEncryptorBuilder(int encAlgorithm,
PGPDigestCalculator s2kDigestCalculator)
Create a builder which will make encryptors using the passed in digest calculator. |
|
BcPBESecretKeyEncryptorBuilder(int encAlgorithm,
PGPDigestCalculator s2kDigestCalculator,
int s2kCount)
Create an SecretKeyEncryptorBuilder with the S2k count different to the default of 0x60, and the S2K digest different from SHA-1. |
Method Summary | |
PBESecretKeyEncryptor |
build(char[] passPhrase)
|
BcPBESecretKeyEncryptorBuilder |
setSecureRandom(java.security.SecureRandom random)
Provide a user defined source of randomness. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BcPBESecretKeyEncryptorBuilder(int encAlgorithm)
public BcPBESecretKeyEncryptorBuilder(int encAlgorithm, int s2kCount)
encAlgorithm
- encryption algorithm to use.s2kCount
- iteration count to use for S2K function.public BcPBESecretKeyEncryptorBuilder(int encAlgorithm, PGPDigestCalculator s2kDigestCalculator)
encAlgorithm
- encryption algorithm to use.s2kDigestCalculator
- digest calculator to use.public BcPBESecretKeyEncryptorBuilder(int encAlgorithm, PGPDigestCalculator s2kDigestCalculator, int s2kCount)
encAlgorithm
- encryption algorithm to use.s2kDigestCalculator
- digest calculator to use.s2kCount
- iteration count to use for S2K function.Method Detail |
public BcPBESecretKeyEncryptorBuilder setSecureRandom(java.security.SecureRandom random)
random
- the secure random to be used.
public PBESecretKeyEncryptor build(char[] passPhrase)
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |