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 Details

    • CertificateTokenRefMatcher

      public CertificateTokenRefMatcher()
      Default constructor
  • Method Details

    • match

      public boolean match(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(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(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(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(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