public class ProviderDigest extends Object implements IExternalDigest
MessageDigest associated with
a certain hashing algorithm returned by the specified provider.| Constructor and Description |
|---|
ProviderDigest(String provider)
Creates a ProviderDigest.
|
| Modifier and Type | Method and Description |
|---|---|
MessageDigest |
getMessageDigest(String hashAlgorithm)
Returns the MessageDigest associated with the provided hashing algorithm.
|
public ProviderDigest(String provider)
provider - String name of the provider that you want to use to create the hashpublic MessageDigest getMessageDigest(String hashAlgorithm) throws GeneralSecurityException
IExternalDigestgetMessageDigest in interface IExternalDigesthashAlgorithm - String value representing the hashing algorithmGeneralSecurityException - Thrown when something goes wrong in calculating the digestCopyright © 1998–2023 Apryse Group NV. All rights reserved.