Package com.itextpdf.signatures
Class ProviderDigest
java.lang.Object
com.itextpdf.signatures.ProviderDigest
- All Implemented Interfaces:
-
IExternalDigest
This class will return the
MessageDigest
associated with a certain hashing algorithm returned by the specified provider.
- Author:
- psoares
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMessageDigest
(String hashAlgorithm) Returns the MessageDigest associated with the provided hashing algorithm.
-
Constructor Details
-
ProviderDigest
Creates a ProviderDigest.- Parameters:
-
provider
- String name of the provider that you want to use to create the hash
-
-
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
-