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
,Serializable
The class is used to download issuer certificates by AIA from remote sources
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructor.DefaultAIASource
(DataLoader dataLoader) Default constructor with a definedDataLoader
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
executeCAIssuersRequest
(String caIssuersUrl) Executes a GET request to retrieve caIssuers from URLcaIssuersUrl
getCAIssuersUrls
(CertificateToken certificateToken) Returns a list of caIssuers URLs for the givencertificateToken
getCertificatesByAIA
(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
Sets the data loader to be used to download a certificate token by AIA- 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
-
getCAIssuersUrls
Returns a list of caIssuers URLs for the givencertificateToken
- Parameters:
certificateToken
-CertificateToken
- Returns:
- a list of
String
s
-
executeCAIssuersRequest
-