Package eu.europa.esig.dss.spi.x509.aia
Class DefaultAIASource
java.lang.Object
eu.europa.esig.dss.spi.x509.aia.DefaultAIASource
- All Implemented Interfaces:
AIASource
,OnlineAIASource
,Serializable
The class is used to download issuer certificates by AIA from remote sources
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.europa.esig.dss.spi.x509.aia.OnlineAIASource
OnlineAIASource.CertificatesAndAIAUrl
-
Constructor Summary
ConstructorDescriptionEmpty constructor.DefaultAIASource
(DataLoader dataLoader) Default constructor with a definedDataLoader
-
Method Summary
Modifier and TypeMethodDescriptiongetCertificatesAndAIAUrls
(CertificateToken certificateToken) The method returns a collection of processed URLs and the corresponding downloaded certificatesgetCertificatesByAIA
(CertificateToken certificateToken) Loads a set ofCertificateToken
s accessed by AIA URIs from the providedcertificateToken
void
setAcceptedProtocols
(Collection<Protocol> acceptedProtocols) Defines a set of protocols to be accepted and used by the AIA Source.void
setDataLoader
(DataLoader dataLoader) Sets the data loader to be used to download a certificate token by AIA
-
Constructor Details
-
DefaultAIASource
public DefaultAIASource()Empty constructor. Instantiates aNativeHTTPDataLoader
as a default data loader -
DefaultAIASource
Default constructor with a definedDataLoader
- Parameters:
dataLoader
-DataLoader
to be used
-
-
Method Details
-
setDataLoader
Description copied from interface:OnlineAIASource
Sets the data loader to be used to download a certificate token by AIA- Specified by:
setDataLoader
in interfaceOnlineAIASource
- Parameters:
dataLoader
-DataLoader
-
setAcceptedProtocols
Defines a set of protocols to be accepted and used by the AIA Source. All protocols which are not defined in the collection will be skipped. Default: all protocols are accepted (FILE, HTTP, HTTPS, LDAP, FTP).- Parameters:
acceptedProtocols
- a collection of acceptedProtocol
s
-
getCertificatesByAIA
Description copied from interface:AIASource
Loads a set ofCertificateToken
s accessed by AIA URIs from the providedcertificateToken
- Specified by:
getCertificatesByAIA
in interfaceAIASource
- Parameters:
certificateToken
-CertificateToken
to get issuer candidates for- Returns:
- a set of issuer candidates accessed by AIA URIs
-
getCertificatesAndAIAUrls
public List<OnlineAIASource.CertificatesAndAIAUrl> getCertificatesAndAIAUrls(CertificateToken certificateToken) Description copied from interface:OnlineAIASource
The method returns a collection of processed URLs and the corresponding downloaded certificates- Specified by:
getCertificatesAndAIAUrls
in interfaceOnlineAIASource
- Parameters:
certificateToken
-CertificateToken
to obtain AIA certificates for- Returns:
- a list of
OnlineAIASource.CertificatesAndAIAUrl
s
-