BcPGPDigestCalculatorProvider
Date: 2016-06-23

org.bouncycastle.openpgp.operator.bc

## Class BcPGPDigestCalculatorProvider

- java.lang.Object
- - org.bouncycastle.openpgp.operator.bc.BcPGPDigestCalculatorProvider

- All Implemented Interfaces:
    PGPDigestCalculatorProvider

      public class BcPGPDigestCalculatorProvider
      extends java.lang.Object
      implements PGPDigestCalculatorProvider

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BcPGPDigestCalculatorProvider()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `PGPDigestCalculator` | `get(int algorithm)` Construct a new instance of a cryptographic digest.

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

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

- - ### Constructor Detail

    - #### BcPGPDigestCalculatorProvider

          public BcPGPDigestCalculatorProvider()

  - ### Method Detail

    - #### get

          public PGPDigestCalculator get(int algorithm)
                                  throws PGPException

      Description copied from interface: `PGPDigestCalculatorProvider`
      Construct a new instance of a cryptographic digest.
      Specified by:
        `get` in interface `PGPDigestCalculatorProvider`
      Parameters:
        `algorithm` - the identifier of the `digest algorithm` to instantiate.
      Returns:
        a digest calculator for the specified algorithm.
      Throws:
        `PGPException` - if an error occurs constructing the specified digest.