Module jpms_dss_spi

Class AlternateUrlsSourceAdapter<R extends eu.europa.esig.dss.model.x509.revocation.Revocation>

java.lang.Object
eu.europa.esig.dss.spi.x509.AlternateUrlsSourceAdapter<R>
Type Parameters:
R - a sub-class of Revocation
All Implemented Interfaces:
RevocationSource<R>, RevocationSourceAlternateUrlsSupport<R>, Serializable

public class AlternateUrlsSourceAdapter<R extends eu.europa.esig.dss.model.x509.revocation.Revocation> extends Object implements RevocationSourceAlternateUrlsSupport<R>
This class allows to inject alternative urls to collect revocation data. This is mainly used to collect revocations from discovered urls in the trusted lists (supplyPoint).
See Also:
  • Constructor Details

  • Method Details

    • getRevocationToken

      public RevocationToken<R> getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken)
      Description copied from interface: RevocationSource
      This method retrieves a RevocationToken for the certificateToken
      Specified by:
      getRevocationToken in interface RevocationSource<R extends eu.europa.esig.dss.model.x509.revocation.Revocation>
      Parameters:
      certificateToken - The CertificateToken for which the request is made
      issuerCertificateToken - The CertificateToken which is the issuer of the certificateToken
      Returns:
      an instance of RevocationToken
    • getRevocationToken

      public RevocationToken<R> getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken, List<String> alternativeUrls)
      Description copied from interface: RevocationSourceAlternateUrlsSupport
      Gets an RevocationToken for the given certificate / issuer's certificate couple. The coherence between the response and the request is checked.
      Specified by:
      getRevocationToken in interface RevocationSourceAlternateUrlsSupport<R extends eu.europa.esig.dss.model.x509.revocation.Revocation>
      Parameters:
      certificateToken - The CertificateToken for which the request is made
      issuerCertificateToken - The CertificateToken which is the issuer of the certificateToken
      alternativeUrls - The list of alternative urls to call
      Returns:
      RevocationToken containing information about the validity of the cert