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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessageDigest(String hashAlgorithm) Returns the MessageDigest associated with the provided hashing algorithm.
-
Field Details
-
provider
-
-
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: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
-