Package com.itextpdf.signatures
Class BouncyCastleDigest
java.lang.Object
com.itextpdf.signatures.BouncyCastleDigest
- All Implemented Interfaces:
-
IExternalDigest
Implementation for digests accessed directly from the BouncyCastle library bypassing any provider definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMessageDigest
(String hashAlgorithm) Returns the MessageDigest associated with the provided hashing algorithm.
-
Constructor Details
-
BouncyCastleDigest
public BouncyCastleDigest()
-
-
Method Details
-
getMessageDigest
Description copied from interface:IExternalDigest
Returns the MessageDigest associated with the provided hashing algorithm.- Specified by:
-
getMessageDigest
in interfaceIExternalDigest
- Parameters:
-
hashAlgorithm
- String value representing the hashing algorithm - Returns:
- MessageDigest MessageDigest object
- Throws:
-
GeneralSecurityException
- Thrown when something goes wrong in calculating the digest
-