Interface PGPDigestCalculatorProvider
- All Known Implementing Classes:
BcPGPDigestCalculatorProvider
public interface PGPDigestCalculatorProvider
A factory for digest algorithms.
-
Method Summary
Modifier and TypeMethodDescriptionget
(int algorithm) Construct a new instance of a cryptographic digest.
-
Method Details
-
get
Construct a new instance of a cryptographic digest.- Parameters:
algorithm
- the identifier of thedigest algorithm
to instantiate.- Returns:
- a digest calculator for the specified algorithm.
- Throws:
PGPException
- if an error occurs constructing the specified digest.
-