Top Description Fields Constructors Methods
org.bouncycastle.openpgp.operator.jcajce

public Class JcePBEDataDecryptorFactoryBuilder

extends Object
Class Inheritance
Imports
java.security.Provider, javax.crypto.Cipher, javax.crypto.spec.IvParameterSpec, .SecretKeySpec, org.bouncycastle.jcajce.util.DefaultJcaJceHelper, .NamedJcaJceHelper, .ProviderJcaJceHelper, org.bouncycastle.openpgp.PGPException, .PGPUtil, org.bouncycastle.openpgp.operator.PBEDataDecryptorFactory, .PGPDataDecryptor, .PGPDigestCalculatorProvider

Builder for PBEDataDecryptorFactory instances that obtain cryptographic primitives using the JCE API.

Field Summary

Modifier and TypeField and Description
private PGPDigestCalculatorProvider
private OperatorHelper

Constructor Summary

AccessConstructor and Description
public
JcePBEDataDecryptorFactoryBuilder()

Base constructor - assume the required digest calculators can be provided from the same source as the cipher needed.

public
JcePBEDataDecryptorFactoryBuilder(PGPDigestCalculatorProvider
a digest calculator provider to provide calculators to support the key generation calculation required.
calculatorProvider
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public PBEDataDecryptorFactory

Returns:

a decryptor factory that can be used to generate PBE keys.
build
(char[]
the pass phrase to use to generate keys in the resulting factory.
passPhrase
)

Construct a PBEDataDecryptorFactory to use to decrypt PBE encrypted data.

public JcePBEDataDecryptorFactoryBuilder

Returns:

the current builder.
setProvider
(Provider
provider object for cryptographic primitives.
provider
)

Set the provider object to use for creating cryptographic primitives in the resulting factory the builder produces.

public JcePBEDataDecryptorFactoryBuilder

Returns:

the current builder.
setProvider
(String
the name of the provider to reference for cryptographic primitives.
providerName
)

Set the provider name to use for creating cryptographic primitives in the resulting factory the builder produces.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

calculatorProviderback to summary
private PGPDigestCalculatorProvider calculatorProvider
helperback to summary
private OperatorHelper helper

Constructor Detail

JcePBEDataDecryptorFactoryBuilderback to summary
public JcePBEDataDecryptorFactoryBuilder()

Base constructor - assume the required digest calculators can be provided from the same source as the cipher needed.

JcePBEDataDecryptorFactoryBuilderback to summary
public JcePBEDataDecryptorFactoryBuilder(PGPDigestCalculatorProvider calculatorProvider)

Base constructor.

Parameters
calculatorProvider:PGPDigestCalculatorProvider

a digest calculator provider to provide calculators to support the key generation calculation required.

Method Detail

buildback to summary
public PBEDataDecryptorFactory build(char[] passPhrase)

Construct a PBEDataDecryptorFactory to use to decrypt PBE encrypted data.

Parameters
passPhrase:char[]

the pass phrase to use to generate keys in the resulting factory.

Returns:PBEDataDecryptorFactory

a decryptor factory that can be used to generate PBE keys.

setProviderback to summary
public JcePBEDataDecryptorFactoryBuilder setProvider(Provider provider)

Set the provider object to use for creating cryptographic primitives in the resulting factory the builder produces.

Parameters
provider:Provider

provider object for cryptographic primitives.

Returns:JcePBEDataDecryptorFactoryBuilder

the current builder.

setProviderback to summary
public JcePBEDataDecryptorFactoryBuilder setProvider(String providerName)

Set the provider name to use for creating cryptographic primitives in the resulting factory the builder produces.

Parameters
providerName:String

the name of the provider to reference for cryptographic primitives.

Returns:JcePBEDataDecryptorFactoryBuilder

the current builder.