Package eu.europa.esig.dss.signature
Class SignatureValueChecker
java.lang.Object
eu.europa.esig.dss.signature.SignatureValueChecker
This class is used to verify whether the given
SignatureValue
is valid and
corresponds to the target SignatureAlgorithm
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionensureSignatureValue
(SignatureValue signatureValue, SignatureAlgorithm targetSignatureAlgorithm) This method ensures the providedsignatureValue
has the expectedtargetSignatureAlgorithm
-
Constructor Details
-
SignatureValueChecker
public SignatureValueChecker()Default constructor
-
-
Method Details
-
ensureSignatureValue
public SignatureValue ensureSignatureValue(SignatureValue signatureValue, SignatureAlgorithm targetSignatureAlgorithm) This method ensures the providedsignatureValue
has the expectedtargetSignatureAlgorithm
- Parameters:
signatureValue
-SignatureValue
obtained from a signing tokentargetSignatureAlgorithm
-SignatureAlgorithm
to convert the signatureValue to- Returns:
SignatureValue
with the definedSignatureAlgorithm
in parameters
-