Class JcaKeyFingerprintCalculator
java.lang.Object
org.bouncycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator
- All Implemented Interfaces:
KeyFingerPrintCalculator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
calculateFingerprint
(PublicKeyPacket publicPk) setProvider
(String providerName) Sets the provider to use to obtain cryptographic primitives.setProvider
(Provider provider) Sets the provider to use to obtain cryptographic primitives.
-
Constructor Details
-
JcaKeyFingerprintCalculator
public JcaKeyFingerprintCalculator()Base Constructor - use the JCA defaults.
-
-
Method Details
-
setProvider
Sets the provider to use to obtain cryptographic primitives.- Parameters:
provider
- the JCA provider to use.- Returns:
- a new JceKeyFingerprintCalculator supported by the passed in provider.
-
setProvider
Sets the provider to use to obtain cryptographic primitives.- Parameters:
providerName
- the name of the JCA provider to use.- Returns:
- a new JceKeyFingerprintCalculator supported by the passed in named provider.
-
calculateFingerprint
- Specified by:
calculateFingerprint
in interfaceKeyFingerPrintCalculator
- Throws:
PGPException
-