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

public Class JcaKeyFingerprintCalculator

extends Object
implements KeyFingerPrintCalculator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator
Imports
java.io.IOException, java.security.GeneralSecurityException, .MessageDigest, .NoSuchAlgorithmException, .NoSuchProviderException, .Provider, org.bouncycastle.bcpg.BCPGKey, .MPInteger, .PublicKeyPacket, .RSAPublicBCPGKey, .UnsupportedPacketVersionException, org.bouncycastle.jcajce.util.DefaultJcaJceHelper, .JcaJceHelper, .NamedJcaJceHelper, .ProviderJcaJceHelper, org.bouncycastle.openpgp.PGPException, org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator

Field Summary

Modifier and TypeField and Description
private final JcaJceHelper

Constructor Summary

AccessConstructor and Description
public
JcaKeyFingerprintCalculator()

Base Constructor - use the JCA defaults.

private

Method Summary

Modifier and TypeMethod and Description
public byte[]
public JcaKeyFingerprintCalculator

Returns:

a new JceKeyFingerprintCalculator supported by the passed in provider.
setProvider
(Provider
the JCA provider to use.
provider
)

Sets the provider to use to obtain cryptographic primitives.

public JcaKeyFingerprintCalculator

Returns:

a new JceKeyFingerprintCalculator supported by the passed in named provider.
setProvider
(String
the name of the JCA provider to use.
providerName
)

Sets the provider to use to obtain cryptographic primitives.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

helperback to summary
private final JcaJceHelper helper

Constructor Detail

JcaKeyFingerprintCalculatorback to summary
public JcaKeyFingerprintCalculator()

Base Constructor - use the JCA defaults.

JcaKeyFingerprintCalculatorback to summary
private JcaKeyFingerprintCalculator(JcaJceHelper helper)

Method Detail

calculateFingerprintback to summary
public byte[] calculateFingerprint(PublicKeyPacket publicPk) throws PGPException

Implements org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator.calculateFingerprint.

setProviderback to summary
public JcaKeyFingerprintCalculator setProvider(Provider provider)

Sets the provider to use to obtain cryptographic primitives.

Parameters
provider:Provider

the JCA provider to use.

Returns:JcaKeyFingerprintCalculator

a new JceKeyFingerprintCalculator supported by the passed in provider.

setProviderback to summary
public JcaKeyFingerprintCalculator setProvider(String providerName)

Sets the provider to use to obtain cryptographic primitives.

Parameters
providerName:String

the name of the JCA provider to use.

Returns:JcaKeyFingerprintCalculator

a new JceKeyFingerprintCalculator supported by the passed in named provider.