Package org.bouncycastle.openpgp.operator.jcajce

## 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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JcaKeyFingerprintCalculator

          public JcaKeyFingerprintCalculator()

      Base Constructor - use the JCA defaults.

  - ### 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 interface `KeyFingerPrintCalculator`
      Throws:
        `PGPException`