Interface PGPDigestCalculatorProvider
-
- All Known Implementing Classes:
BcPGPDigestCalculatorProvider
public interface PGPDigestCalculatorProviderA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PGPDigestCalculatorget(int algorithm)Construct a new instance of a cryptographic digest.
-
-
-
Method Detail
-
get
PGPDigestCalculator get(int algorithm) throws PGPException
Construct a new instance of a cryptographic digest.- Parameters:
algorithm- the identifier of thedigest algorithmto instantiate.- Returns:
- a digest calculator for the specified algorithm.
- Throws:
PGPException- if an error occurs constructing the specified digest.
-
-