Package com.itextpdf.signatures
Class BouncyCastleDigest
- java.lang.Object
-
- com.itextpdf.signatures.BouncyCastleDigest
-
- All Implemented Interfaces:
IExternalDigest
public class BouncyCastleDigest extends java.lang.Object implements IExternalDigest
Implementation for digests accessed directly from the BouncyCastle library bypassing any provider definition.
-
-
Constructor Summary
Constructors Constructor Description BouncyCastleDigest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.MessageDigest
getMessageDigest(java.lang.String hashAlgorithm)
Returns the MessageDigest associated with the provided hashing algorithm.
-
-
-
Method Detail
-
getMessageDigest
public java.security.MessageDigest getMessageDigest(java.lang.String hashAlgorithm) throws java.security.GeneralSecurityException
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:
java.security.GeneralSecurityException
- Thrown when something goes wrong in calculating the digest
-
-