Class SignatureValueChecker

java.lang.Object
eu.europa.esig.dss.signature.SignatureValueChecker

public class SignatureValueChecker extends Object
This class is used to verify whether the given SignatureValue is valid and corresponds to the target SignatureAlgorithm.
  • Constructor Details

    • SignatureValueChecker

      public SignatureValueChecker()
      Default constructor
  • Method Details

    • ensureSignatureValue

      public SignatureValue ensureSignatureValue(SignatureValue signatureValue, SignatureAlgorithm targetSignatureAlgorithm)
      This method ensures the provided signatureValue has the expected targetSignatureAlgorithm
      Parameters:
      signatureValue - SignatureValue obtained from a signing token
      targetSignatureAlgorithm - SignatureAlgorithm to convert the signatureValue to
      Returns:
      SignatureValue with the defined SignatureAlgorithm in parameters