Class JcaKeyFingerprintCalculator

java.lang.Object
org.bouncycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator
All Implemented Interfaces:
KeyFingerPrintCalculator

public class JcaKeyFingerprintCalculator extends Object implements KeyFingerPrintCalculator
  • Constructor Details

    • JcaKeyFingerprintCalculator

      public JcaKeyFingerprintCalculator()
      Base Constructor - use the JCA defaults.
  • Method Details

    • setProvider

      public JcaKeyFingerprintCalculator setProvider(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(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 interface KeyFingerPrintCalculator
      Throws:
      PGPException