java.lang.Object
eu.europa.esig.dss.spi.x509.CertificateTokenRefMatcher
This class is used to verify if a given
CertificateToken matches a CertificateRef-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatch(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if the givenCertificateTokenmatches theCertificateRefbooleanmatchByDigest(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only digest within thecertificateRefcorresponds tocertificateTokenbooleanmatchByIssuerName(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only the issuer name within thecertificateRefcorresponds tocertificateTokenbooleanmatchByResponderId(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only the responder Id within thecertificateRefcorresponds tocertificateTokenbooleanmatchBySerialNumber(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only the serial number within thecertificateRefcorresponds tocertificateToken
-
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 givenCertificateTokenmatches theCertificateRef- Parameters:
certificateToken-CertificateTokencertificateRef-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 thecertificateRefcorresponds tocertificateToken- Parameters:
certificateToken-CertificateTokencertificateRef-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 thecertificateRefcorresponds tocertificateToken- Parameters:
certificateToken-CertificateTokencertificateRef-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 thecertificateRefcorresponds tocertificateToken- Parameters:
certificateToken-CertificateTokencertificateRef-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 thecertificateRefcorresponds tocertificateToken- Parameters:
certificateToken-CertificateTokencertificateRef-CertificateRef- Returns:
- TRUE if the responder Id present within a reference match the certificate token
-