Class JcaKeyFingerprintCalculator
- java.lang.Object
-
- org.bouncycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator
-
- All Implemented Interfaces:
KeyFingerPrintCalculator
public class JcaKeyFingerprintCalculator extends java.lang.Object implements KeyFingerPrintCalculator
-
-
Constructor Summary
Constructors Constructor Description JcaKeyFingerprintCalculator()
Base Constructor - use the JCA defaults.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
calculateFingerprint(PublicKeyPacket publicPk)
JcaKeyFingerprintCalculator
setProvider(java.lang.String providerName)
Sets the provider to use to obtain cryptographic primitives.JcaKeyFingerprintCalculator
setProvider(java.security.Provider provider)
Sets the provider to use to obtain cryptographic primitives.
-
-
-
Method Detail
-
setProvider
public JcaKeyFingerprintCalculator setProvider(java.security.Provider provider)
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
public JcaKeyFingerprintCalculator setProvider(java.lang.String providerName)
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
public byte[] calculateFingerprint(PublicKeyPacket publicPk) throws PGPException
- Specified by:
calculateFingerprint
in interfaceKeyFingerPrintCalculator
- Throws:
PGPException
-
-