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

public Class JcePublicKeyDataDecryptorFactoryBuilder

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.GeneralSecurityException, .InvalidAlgorithmParameterException, .InvalidKeyException, .Key, .KeyFactory, .NoSuchAlgorithmException, .PrivateKey, .Provider, .PublicKey, java.security.interfaces.RSAKey, java.security.spec.X509EncodedKeySpec, java.util.Date, javax.crypto.Cipher, .KeyAgreement, javax.crypto.interfaces.DHKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.asn1.x9.ECNamedCurveTable, .X9ECParameters, org.bouncycastle.bcpg.ECDHPublicBCPGKey, .PublicKeyAlgorithmTags, .PublicKeyPacket, org.bouncycastle.jcajce.spec.UserKeyingMaterialSpec, org.bouncycastle.jcajce.util.DefaultJcaJceHelper, .NamedJcaJceHelper, .ProviderJcaJceHelper, org.bouncycastle.math.ec.ECPoint, org.bouncycastle.openpgp.PGPException, .PGPPrivateKey, .PGPPublicKey, org.bouncycastle.openpgp.operator.PGPDataDecryptor, .PGPPad, .PublicKeyDataDecryptorFactory, .RFC6637Utils, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private OperatorHelper
private JcaKeyFingerprintCalculator
private OperatorHelper
private JcaPGPKeyConverter
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PublicKeyDataDecryptorFactory
build(final PrivateKey privKey)

public PublicKeyDataDecryptorFactory
build(final PGPPrivateKey privKey)

private byte[]
decryptSessionData(JcaPGPKeyConverter converter, PGPPrivateKey privKey, byte[][] secKeyData)

private byte[]
decryptSessionData(int keyAlgorithm, PrivateKey privKey, int expectedPayloadSize, byte[][] secKeyData)

private int
public JcePublicKeyDataDecryptorFactoryBuilder
public JcePublicKeyDataDecryptorFactoryBuilder
setContentProvider(String providerName)

public JcePublicKeyDataDecryptorFactoryBuilder

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 JcePublicKeyDataDecryptorFactoryBuilder

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.

private void
updateWithMPI(Cipher c, int expectedPayloadSize, byte[] encMPI)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentHelperback to summary
private OperatorHelper contentHelper
fingerprintCalculatorback to summary
private JcaKeyFingerprintCalculator fingerprintCalculator
helperback to summary
private OperatorHelper helper
keyConverterback to summary
private JcaPGPKeyConverter keyConverter
X25519_KEY_SIZEback to summary
private static final int X25519_KEY_SIZE

Constructor Detail

JcePublicKeyDataDecryptorFactoryBuilderback to summary
public JcePublicKeyDataDecryptorFactoryBuilder()

Method Detail

buildback to summary
public PublicKeyDataDecryptorFactory build(final PrivateKey privKey)
buildback to summary
public PublicKeyDataDecryptorFactory build(final PGPPrivateKey privKey)
decryptSessionDataback to summary
private byte[] decryptSessionData(JcaPGPKeyConverter converter, PGPPrivateKey privKey, byte[][] secKeyData) throws PGPException
decryptSessionDataback to summary
private byte[] decryptSessionData(int keyAlgorithm, PrivateKey privKey, int expectedPayloadSize, byte[][] secKeyData) throws PGPException
getExpectedPayloadSizeback to summary
private int getExpectedPayloadSize(PrivateKey key)
setContentProviderback to summary
public JcePublicKeyDataDecryptorFactoryBuilder setContentProvider(Provider provider)
setContentProviderback to summary
public JcePublicKeyDataDecryptorFactoryBuilder setContentProvider(String providerName)
setProviderback to summary
public JcePublicKeyDataDecryptorFactoryBuilder 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:JcePublicKeyDataDecryptorFactoryBuilder

the current builder.

setProviderback to summary
public JcePublicKeyDataDecryptorFactoryBuilder 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:JcePublicKeyDataDecryptorFactoryBuilder

the current builder.

updateWithMPIback to summary
private void updateWithMPI(Cipher c, int expectedPayloadSize, byte[] encMPI)