Bouncy Castle Cryptography Library 1.47

org.bouncycastle.openpgp.operator.bc
Class BcPBESecretKeyEncryptorBuilder

java.lang.Object
  extended by org.bouncycastle.openpgp.operator.bc.BcPBESecretKeyEncryptorBuilder

public class BcPBESecretKeyEncryptorBuilder
extends java.lang.Object


Constructor Summary
BcPBESecretKeyEncryptorBuilder(int encAlgorithm)
           
BcPBESecretKeyEncryptorBuilder(int encAlgorithm, PGPDigestCalculator s2kDigestCalculator)
           
 
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

BcPBESecretKeyEncryptorBuilder

public BcPBESecretKeyEncryptorBuilder(int encAlgorithm)

BcPBESecretKeyEncryptorBuilder

public BcPBESecretKeyEncryptorBuilder(int encAlgorithm,
                                      PGPDigestCalculator s2kDigestCalculator)
Method Detail

setSecureRandom

public BcPBESecretKeyEncryptorBuilder setSecureRandom(java.security.SecureRandom random)
Provide a user defined source of randomness.

Parameters:
random - the secure random to be used.
Returns:
the current builder.

build

public PBESecretKeyEncryptor build(char[] passPhrase)

Bouncy Castle Cryptography Library 1.47