Module jpms_dss_spi

Class OCSPTokenRefMatcher

java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPTokenRefMatcher
All Implemented Interfaces:
RevocationTokenRefMatcher<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>

public class OCSPTokenRefMatcher extends Object implements RevocationTokenRefMatcher<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>
The class is used to check OCSP token reference
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    match(eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> identifier, RevocationRef<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> reference)
    This method returns true if the reference is related to the encapsulated identifier
    boolean
    match(RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> token, RevocationRef<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> reference)
    This method returns true if the reference is related to the provided token

    Methods inherited from class java.lang.Object

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

    • OCSPTokenRefMatcher

      public OCSPTokenRefMatcher()
      Default constructor
  • Method Details

    • match

      public boolean match(RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> token, RevocationRef<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> reference)
      Description copied from interface: RevocationTokenRefMatcher
      This method returns true if the reference is related to the provided token
      Specified by:
      match in interface RevocationTokenRefMatcher<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>
      Parameters:
      token - the revocation token
      reference - the revocation reference
      Returns:
      true if the reference refers to the token
    • match

      public boolean match(eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> identifier, RevocationRef<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> reference)
      Description copied from interface: RevocationTokenRefMatcher
      This method returns true if the reference is related to the encapsulated identifier
      Specified by:
      match in interface RevocationTokenRefMatcher<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>
      Parameters:
      identifier - the revocation token identifier
      reference - the revocation reference
      Returns:
      true if the reference refers to the identifier