Class CustomMessageDigestCalculatorProvider
java.lang.Object
eu.europa.esig.dss.cades.signature.CustomMessageDigestCalculatorProvider
- All Implemented Interfaces:
org.bouncycastle.operator.DigestCalculatorProvider
public class CustomMessageDigestCalculatorProvider
extends Object
implements org.bouncycastle.operator.DigestCalculatorProvider
Represents a
DigestCalculatorProvider
for a message-digest calculation-
Constructor Summary
ConstructorDescriptionCustomMessageDigestCalculatorProvider
(DigestAlgorithm messageDigestAlgo, byte[] messageDigestValue) The default constructor to create an object with a message digest provided in a form of byte arrayCustomMessageDigestCalculatorProvider
(DigestAlgorithm messageDigestAlgo, String messageDigestValueBase64) Deprecated.since DSS 6.1. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.operator.DigestCalculator
get
(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithmIdentifier)
-
Constructor Details
-
CustomMessageDigestCalculatorProvider
public CustomMessageDigestCalculatorProvider(DigestAlgorithm messageDigestAlgo, byte[] messageDigestValue) The default constructor to create an object with a message digest provided in a form of byte array- Parameters:
messageDigestAlgo
-DigestAlgorithm
that has been used to calculate the message-digest valuemessageDigestValue
- byte array representing the message-digest value
-
CustomMessageDigestCalculatorProvider
@Deprecated public CustomMessageDigestCalculatorProvider(DigestAlgorithm messageDigestAlgo, String messageDigestValueBase64) Deprecated.since DSS 6.1. Please use insteadnew CustomMessageDigestCalculatorProvider(DigestAlgorithm messageDigestAlgo, byte[] messageDigestValue)
The default constructor to create an object with a message digest provided in a form of base64-encoded String- Parameters:
messageDigestAlgo
-DigestAlgorithm
that has been used to calculate the message-digest valuemessageDigestValueBase64
-String
base64 encoded message-digest value
-
-
Method Details
-
get
public org.bouncycastle.operator.DigestCalculator get(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithmIdentifier) throws org.bouncycastle.operator.OperatorCreationException - Specified by:
get
in interfaceorg.bouncycastle.operator.DigestCalculatorProvider
- Throws:
org.bouncycastle.operator.OperatorCreationException
-