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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
match
(CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if the givenCertificateToken
matches theCertificateRef
boolean
matchByDigest
(CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only digest within thecertificateRef
corresponds tocertificateToken
boolean
matchByIssuerName
(CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only the issuer name within thecertificateRef
corresponds tocertificateToken
boolean
matchByResponderId
(CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only the responder Id within thecertificateRef
corresponds tocertificateToken
boolean
matchBySerialNumber
(CertificateToken certificateToken, CertificateRef certificateRef) This method verifies if only the serial number within thecertificateRef
corresponds tocertificateToken
-
Constructor Details
-
CertificateTokenRefMatcher
public CertificateTokenRefMatcher()Default constructor
-
-
Method Details
-
match
This method verifies if the givenCertificateToken
matches theCertificateRef
- Parameters:
certificateToken
-CertificateToken
certificateRef
-CertificateRef
- Returns:
- TRUE if the reference corresponds to the certificate, FALSE otherwise
-
matchByDigest
This method verifies if only digest within thecertificateRef
corresponds tocertificateToken
- 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 thecertificateRef
corresponds tocertificateToken
- Parameters:
certificateToken
-CertificateToken
certificateRef
-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 thecertificateRef
corresponds tocertificateToken
- Parameters:
certificateToken
-CertificateToken
certificateRef
-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 thecertificateRef
corresponds tocertificateToken
- Parameters:
certificateToken
-CertificateToken
certificateRef
-CertificateRef
- Returns:
- TRUE if the responder Id present within a reference match the certificate token
-