Package eu.europa.esig.dss.pki.x509.aia
Class PKIAIASource
java.lang.Object
eu.europa.esig.dss.pki.x509.aia.PKIAIASource
- All Implemented Interfaces:
AIASource,Serializable
Implementation of
AIASource used to return a list of CA issuers for the provided CertificateToken,
available in the current PKI CertEntityRepository.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPKIAIASource(CertEntityRepository<? extends CertEntity> certEntityRepository) Default constructor to instantiate thePKIAIASourcewith the given PKICertEntityRepository -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanGenerate(CertificateToken certificateToken) Returns whether the current implementation is able to produce a CA issuers certificate chain for the givencertificateTokenprotected CertEntitygetCertEntity(CertificateToken certificateToken) Returns a cert entity for the correspondingeu.europa.esig.dss.model.x509.CertificateTokenprotected List<CertificateToken> getCertificateChain(CertificateToken certificateToken) Returns a certificate chain for the givencertificateTokenprotected CertificateTokengetCertificateIssuer(CertificateToken certificateToken) Returns issuer of thecertificateTokengetCertificatesByAIA(CertificateToken certificateToken) Loads a set ofCertificateTokens accessed by AIA URIs from the providedcertificateTokenvoidsetCompleteCertificateChain(boolean completeCertificateChain) Sets whether a complete certificate chain should be returned by the current instance.
-
Constructor Details
-
PKIAIASource
Default constructor to instantiate thePKIAIASourcewith the given PKICertEntityRepository- Parameters:
certEntityRepository-CertEntityRepositorymanaging the PKI entities
-
-
Method Details
-
setCompleteCertificateChain
public void setCompleteCertificateChain(boolean completeCertificateChain) Sets whether a complete certificate chain should be returned by the current instance. If set to TRUE, returns a complete certificate chain for the given certificate token. If set to FALSE, returns only the certificate token's issuer certificate. Default: TRUE (returns complete certificate chain)- Parameters:
completeCertificateChain- whether a complete certificate chain should be returned
-
getCertificatesByAIA
Description copied from interface:AIASourceLoads a set ofCertificateTokens accessed by AIA URIs from the providedcertificateToken- Specified by:
getCertificatesByAIAin interfaceAIASource- Parameters:
certificateToken-CertificateTokento get issuer candidates for- Returns:
- a set of issuer candidates accessed by AIA URIs
-
canGenerate
Returns whether the current implementation is able to produce a CA issuers certificate chain for the givencertificateToken- Parameters:
certificateToken-CertificateTokento produce a CRL for- Returns:
- TRUE if the current implementation is able to produce a CA issuers certificate chain for the given certificate, FALSE otherwise
-
getCertificateChain
Returns a certificate chain for the givencertificateToken- Parameters:
certificateToken-CertificateTokento get certificate chain for- Returns:
- a list of
CertificateTokens
-
getCertificateIssuer
Returns issuer of thecertificateToken- Parameters:
certificateToken-CertificateTokento get issuer for- Returns:
CertificateTokenissuer certificate token, if found
-
getCertEntity
Returns a cert entity for the correspondingeu.europa.esig.dss.model.x509.CertificateToken- Parameters:
certificateToken-CertificateTokento get the corresponding cert entity- Returns:
CertEntity
-