Module jpms_dss_spi

Class CertificateTokenRefMatcher

java.lang.Object
eu.europa.esig.dss.spi.x509.CertificateTokenRefMatcher

public class CertificateTokenRefMatcher extends Object
This class is used to verify if a given CertificateToken matches a CertificateRef
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    match(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
    This method verifies if the given CertificateToken matches the CertificateRef
    boolean
    matchByDigest(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
    This method verifies if only digest within the certificateRef corresponds to certificateToken
    boolean
    matchByIssuerName(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
    This method verifies if only the issuer name within the certificateRef corresponds to certificateToken
    boolean
    matchByResponderId(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
    This method verifies if only the responder Id within the certificateRef corresponds to certificateToken
    boolean
    matchBySerialNumber(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
    This method verifies if only the serial number within the certificateRef corresponds to certificateToken

    Methods inherited from class java.lang.Object

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

    • CertificateTokenRefMatcher

      public CertificateTokenRefMatcher()
      Default constructor
  • Method Details

    • match

      public boolean match(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
      This method verifies if the given CertificateToken matches the CertificateRef
      Parameters:
      certificateToken - CertificateToken
      certificateRef - CertificateRef
      Returns:
      TRUE if the reference corresponds to the certificate, FALSE otherwise
    • matchByDigest

      public boolean matchByDigest(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
      This method verifies if only digest within the certificateRef corresponds to certificateToken
      Parameters:
      certificateToken - CertificateToken
      certificateRef - CertificateRef
      Returns:
      TRUE if the digest present within a reference match the one computed on certificate token's binaries
    • matchBySerialNumber

      public boolean matchBySerialNumber(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
      This method verifies if only the serial number within the certificateRef corresponds to certificateToken
      Parameters:
      certificateToken - CertificateToken
      certificateRef - CertificateRef
      Returns:
      TRUE if the serial number present within a reference match the certificate token
    • matchByIssuerName

      public boolean matchByIssuerName(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
      This method verifies if only the issuer name within the certificateRef corresponds to certificateToken
      Parameters:
      certificateToken - CertificateToken
      certificateRef - CertificateRef
      Returns:
      TRUE if the issuer name present within a reference match the certificate token
    • matchByResponderId

      public boolean matchByResponderId(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef)
      This method verifies if only the responder Id within the certificateRef corresponds to certificateToken
      Parameters:
      certificateToken - CertificateToken
      certificateRef - CertificateRef
      Returns:
      TRUE if the responder Id present within a reference match the certificate token