Class AIACertificateSource

java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.spi.x509.aia.AIACertificateSource
All Implemented Interfaces:
CertificateSource, Serializable

public class AIACertificateSource extends CommonCertificateSource
The certificate source requesting issuer certificates by AIA
See Also:
  • Constructor Details

    • AIACertificateSource

      protected AIACertificateSource(eu.europa.esig.dss.model.x509.CertificateToken certificate)
      Constructor to create the AIA certificate source for a certificate
      Parameters:
      certificate - CertificateToken
  • Method Details

    • forCertificateToken

      public static AIACertificateSource forCertificateToken(eu.europa.esig.dss.model.x509.CertificateToken certificate, AIASource aiaSource)
      Retrieves an AIA.caIssuers for the given certificate using the aiaSource. NOTE: This method performs AIA URI request on instantiation.
      Parameters:
      certificate - CertificateToken to get AIA.caIssuers for
      aiaSource - AIASource to use
      Returns:
      AIACertificateSource
    • getIssuer

      protected static eu.europa.esig.dss.model.x509.CertificateToken getIssuer(eu.europa.esig.dss.model.x509.CertificateToken certificate, Collection<eu.europa.esig.dss.model.x509.CertificateToken> candidates)
      Gets issuer certificate for the certificate from the given collection of candidates. This method returns a NULL value if no suitable issuer was found.
      Parameters:
      certificate - CertificateToken to get issuer for
      candidates - a collection of CertificateTokens
      Returns:
      CertificateToken issuer of the certificate if found, NULL otherwise
    • getIssuerFromAIA

      public eu.europa.esig.dss.model.x509.CertificateToken getIssuerFromAIA()
      Get the issuer's certificate from Authority Information Access through id-ad-caIssuers extension.
      Returns:
      CertificateToken representing the issuer certificate or null.
    • getCertificateSourceType

      public eu.europa.esig.dss.enumerations.CertificateSourceType getCertificateSourceType()
      Description copied from interface: CertificateSource
      This method returns the certificate source type associated to the implementation class.
      Specified by:
      getCertificateSourceType in interface CertificateSource
      Overrides:
      getCertificateSourceType in class CommonCertificateSource
      Returns:
      the certificate origin