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
Constructors -
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:IExternalDigestReturns the MessageDigest associated with the provided hashing algorithm.- Specified by:
getMessageDigestin interfaceIExternalDigest- Parameters:
hashAlgorithm- String value representing the hashing algorithm- Returns:
- MessageDigest MessageDigest object
- Throws:
GeneralSecurityException- Thrown when something goes wrong in calculating the digest
-