Package eu.europa.esig.dss.spi.x509
Class CertificateTokenRefMatcher
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(CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if the givenCertificateTokenmatches theCertificateRefbooleanmatchByDigest(CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only digest within thecertificateRefcorresponds tocertificateTokenbooleanmatchByIssuerName(CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only the issuer name within thecertificateRefcorresponds tocertificateTokenbooleanmatchByResponderId(CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only the responder Id within thecertificateRefcorresponds tocertificateTokenbooleanmatchBySerialNumber(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
This method verifies if the givenCertificateTokenmatches theCertificateRef- Parameters:
certificateToken-CertificateTokencertificateRef-CertificateRef- Returns:
- TRUE if the reference corresponds to the certificate, FALSE otherwise
-
matchByDigest
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(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
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
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
-