Package com.io7m.certusine.looseleaf
Class CSLLDownloader
java.lang.Object
com.io7m.certusine.looseleaf.CSLLDownloader
A downloader that can take certificates from a looseleaf database and save it
to a local directory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CSLLDownloadercreate(com.io7m.looseleaf.protocol.v1.LLv1Messages messages, HttpClient client, Path directory, String baseURI, CSLLCredentials credentials, String domain, CSCertificateName certificateName) Create a new downloader.static CSLLDownloadercreate(Path directory, String baseURI, CSLLCredentials credentials, String domain, CSCertificateName certificateName) Create a new downloader.voidexecute()Execute the downloader once.
-
Method Details
-
certificateName
- Returns:
- The certificate name
-
create
public static CSLLDownloader create(Path directory, String baseURI, CSLLCredentials credentials, String domain, CSCertificateName certificateName) Create a new downloader.- Parameters:
directory- The output directorybaseURI- The base URI for the APIcredentials- The credentialsdomain- The domaincertificateName- The certificate name- Returns:
- A new downloader
-
create
public static CSLLDownloader create(com.io7m.looseleaf.protocol.v1.LLv1Messages messages, HttpClient client, Path directory, String baseURI, CSLLCredentials credentials, String domain, CSCertificateName certificateName) Create a new downloader.- Parameters:
messages- The V1 message deserializerclient- The clientdirectory- The output directorybaseURI- The base URI for the APIcredentials- The credentialsdomain- The domaincertificateName- The certificate name- Returns:
- A new downloader
-
execute
Execute the downloader once. May be called multiple times.- Throws:
IOException- On I/O errorsInterruptedException- On interruptions
-