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 hash
public MessageDigest getMessageDigest(String hashAlgorithm) throws GeneralSecurityException
IExternalDigest
getMessageDigest
in interface IExternalDigest
hashAlgorithm
- String value representing the hashing algorithm
GeneralSecurityException
Copyright © 1998–2017 iText Group NV. All rights reserved.