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 Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    eu.europa.esig.dss.model.SignatureValue
    ensureSignatureValue(eu.europa.esig.dss.model.SignatureValue signatureValue, eu.europa.esig.dss.enumerations.SignatureAlgorithm targetSignatureAlgorithm)
    This method ensures the provided signatureValue has the expected targetSignatureAlgorithm

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SignatureValueChecker

      public SignatureValueChecker()
      Default constructor
  • Method Details

    • ensureSignatureValue

      public eu.europa.esig.dss.model.SignatureValue ensureSignatureValue(eu.europa.esig.dss.model.SignatureValue signatureValue, eu.europa.esig.dss.enumerations.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