Package com.itextpdf.signatures
Interface IExternalDigest
-
- All Known Implementing Classes:
BouncyCastleDigest
,ProviderDigest
public interface IExternalDigest
ExternalDigest allows the use of implementations ofMessageDigest
other thanBouncyCastleDigest
.
-
-
Method Summary
All Methods Instance Methods Abstract 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
java.security.MessageDigest getMessageDigest(java.lang.String hashAlgorithm) throws java.security.GeneralSecurityException
Returns the MessageDigest associated with the provided hashing algorithm.- 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
-
-