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
ConstructorsConstructorDescriptionEmpty 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 URLcaIssuersUrlgetCAIssuersUrls(CertificateToken certificateToken) Returns a list of caIssuers URLs for the givencertificateTokengetCertificatesByAIA(CertificateToken certificateToken) Loads a set ofCertificateTokens accessed by AIA URIs from the providedcertificateTokenvoidsetAcceptedProtocols(Collection<Protocol> acceptedProtocols) Defines a set of protocols to be accepted and used by the AIA Source.voidsetDataLoader(DataLoader dataLoader) Sets the data loader to be used to download a certificate token by AIA
-
Constructor Details
-
DefaultAIASource
public DefaultAIASource()Empty constructor. Instantiates aNativeHTTPDataLoaderas a default data loader -
DefaultAIASource
Default constructor with a definedDataLoader- Parameters:
dataLoader-DataLoaderto 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 acceptedProtocols
-
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
-
getCAIssuersUrls
Returns a list of caIssuers URLs for the givencertificateToken- Parameters:
certificateToken-CertificateToken- Returns:
- a list of
Strings
-
executeCAIssuersRequest
-