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
The certificate source requesting issuer certificates by AIA
- See Also:
-
Field Summary
Fields inherited from class CommonCertificateSource
certificateMatcher -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAIACertificateSource(eu.europa.esig.dss.model.x509.CertificateToken certificate) Constructor to create the AIA certificate source for acertificate -
Method Summary
Modifier and TypeMethodDescriptionstatic AIACertificateSourceforCertificateToken(eu.europa.esig.dss.model.x509.CertificateToken certificate, AIASource aiaSource) Retrieves an AIA.caIssuers for the givencertificateusing theaiaSource.eu.europa.esig.dss.enumerations.CertificateSourceTypeThis method returns the certificate source type associated to the implementation class.protected static eu.europa.esig.dss.model.x509.CertificateTokengetIssuer(eu.europa.esig.dss.model.x509.CertificateToken certificate, Collection<eu.europa.esig.dss.model.x509.CertificateToken> candidates) Gets issuer certificate for thecertificatefrom the given collection ofcandidates.eu.europa.esig.dss.model.x509.CertificateTokenGet the issuer's certificate from Authority Information Access through id-ad-caIssuers extension.Methods inherited from class CommonCertificateSource
addCertificate, doesCertificateReferenceMatch, findTokensFromCertRef, getByCertificateDigest, getByEntityKey, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted, isTrustedAtTime, removeCertificate, reset
-
Constructor Details
-
AIACertificateSource
protected AIACertificateSource(eu.europa.esig.dss.model.x509.CertificateToken certificate) Constructor to create the AIA certificate source for acertificate- 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 givencertificateusing theaiaSource. NOTE: This method performs AIA URI request on instantiation.- Parameters:
certificate-CertificateTokento get AIA.caIssuers foraiaSource-AIASourceto 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 thecertificatefrom the given collection ofcandidates. This method returns a NULL value if no suitable issuer was found.- Parameters:
certificate-CertificateTokento get issuer forcandidates- a collection ofCertificateTokens- Returns:
CertificateTokenissuer 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:
CertificateTokenrepresenting the issuer certificate or null.
-
getCertificateSourceType
public eu.europa.esig.dss.enumerations.CertificateSourceType getCertificateSourceType()Description copied from interface:CertificateSourceThis method returns the certificate source type associated to the implementation class.- Specified by:
getCertificateSourceTypein interfaceCertificateSource- Overrides:
getCertificateSourceTypein classCommonCertificateSource- Returns:
- the certificate origin
-