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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionensureSignatureValue(SignatureValue signatureValue, SignatureAlgorithm targetSignatureAlgorithm) This method ensures the providedsignatureValuehas the expectedtargetSignatureAlgorithm
-
Constructor Details
-
SignatureValueChecker
public SignatureValueChecker()Default constructor
-
-
Method Details
-
ensureSignatureValue
public SignatureValue ensureSignatureValue(SignatureValue signatureValue, SignatureAlgorithm targetSignatureAlgorithm) This method ensures the providedsignatureValuehas the expectedtargetSignatureAlgorithm- Parameters:
signatureValue-SignatureValueobtained from a signing tokentargetSignatureAlgorithm-SignatureAlgorithmto convert the signatureValue to- Returns:
SignatureValuewith the definedSignatureAlgorithmin parameters
-