Top Description Methods
org.bouncycastle.openpgp.operator

public Interface PGPDigestCalculatorProvider

Known Direct Implementers
org.bouncycastle.openpgp.operator.bc.BcPGPDigestCalculatorProvider
Imports
org.bouncycastle.bcpg.HashAlgorithmTags, org.bouncycastle.openpgp.PGPException

A factory for digest algorithms. The purpose of this class is to act as an abstract factory, whose subclasses can decide, which concrete implementation to use for calculating PGP digests.

Method Summary

Modifier and TypeMethod and Description
public PGPDigestCalculator

Returns:

a digest calculator for the specified algorithm.
get
(int
the identifier of the digest algorithm to instantiate.
algorithm
)

Construct a new instance of a cryptographic digest.

Method Detail

getback to summary
public PGPDigestCalculator get(int algorithm) throws PGPException

Construct a new instance of a cryptographic digest.

Parameters
algorithm:int

the identifier of the digest algorithm to instantiate.

Returns:PGPDigestCalculator

a digest calculator for the specified algorithm.

Exceptions
PGPException:
if an error occurs constructing the specified digest.