Class OnlineCRLSource
java.lang.Object
eu.europa.esig.dss.service.crl.OnlineCRLSource
- All Implemented Interfaces:
Serializable
Online CRL repository. This CRL repository implementation will download the
CRLs from the given CRL URIs. Note that for the HTTP kind of URLs you can
provide dedicated data loader. If the data loader is not provided the
standard load from URI is provided. For FTP the standard load from URI is
provided. For LDAP kind of URLs an internal implementation using
apache-ldap-api is provided.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.OnlineCRLSource(eu.europa.esig.dss.spi.client.http.DataLoader dataLoader) This constructor allows to set a specificDataLoader. -
Method Summary
Modifier and TypeMethodDescriptionprotected eu.europa.esig.dss.crl.CRLBinaryexecuteCRLRequest(String crlUrl) Download a CRL from given locationgetCRLAccessURLs(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, List<String> alternativeUrls) Extracts a list of CRL distribution point URLs to be used in the provided order to retrieve a CRLeu.europa.esig.dss.spi.x509.revocation.crl.CRLTokengetRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken) eu.europa.esig.dss.spi.x509.revocation.crl.CRLTokengetRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerToken, List<String> alternativeUrls) voidsetDataLoader(eu.europa.esig.dss.spi.client.http.DataLoader dataLoader) Set the DataLoader to use for querying a revocation server.voidsetPreferredProtocol(eu.europa.esig.dss.spi.client.http.Protocol preferredProtocol) This method allows to set the preferred protocol.
-
Constructor Details
-
OnlineCRLSource
public OnlineCRLSource()The default constructor. ACommonsDataLoader is created. -
OnlineCRLSource
public OnlineCRLSource(eu.europa.esig.dss.spi.client.http.DataLoader dataLoader) This constructor allows to set a specificDataLoader.- Parameters:
dataLoader- the component that allows to retrieve the data using any protocol: HTTP, HTTPS, FTP, LDAP.
-
-
Method Details
-
setPreferredProtocol
public void setPreferredProtocol(eu.europa.esig.dss.spi.client.http.Protocol preferredProtocol) This method allows to set the preferred protocol. This parameter is used when retrieving the CRL to choose the canal.
Possible values are: http, ldap, ftp- Parameters:
preferredProtocol-Protocolthat is used first to retrieve the revocation data
-
setDataLoader
public void setDataLoader(eu.europa.esig.dss.spi.client.http.DataLoader dataLoader) Set the DataLoader to use for querying a revocation server.- Parameters:
dataLoader- the component that allows to retrieve a CRL response using HTTP.
-
getRevocationToken
public eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken) -
getRevocationToken
-
getCRLAccessURLs
-
executeCRLRequest
-