Class CrlGenerator
java.lang.Object
org.codice.ddf.security.crl.generator.CrlGenerator
- All Implemented Interfaces:
Runnable
The CrlGenerator downloads and saves a Certificate Revocation List from a URL specified by
crlLocationUrl.-
Constructor Summary
ConstructorsConstructorDescriptionCrlGenerator(org.codice.ddf.cxf.client.ClientBuilderFactory factory, org.osgi.service.event.EventAdmin eventAdmin) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy method to shutdown the scheduler when the configuration is deleted.voidrun()Pulls down the CRL file provided via URL and writes it locally.voidsetCrlByUrlEnabled(boolean crlByUrlEnabled) Enables or disables the CRL download.voidsetCrlLocationUrl(String crlLocationUrl) Sets the URL to download the CRL from and starts a task to download the CRL every 30 minutes.voidsetSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
-
Constructor Details
-
CrlGenerator
public CrlGenerator(org.codice.ddf.cxf.client.ClientBuilderFactory factory, org.osgi.service.event.EventAdmin eventAdmin)
-
-
Method Details
-
run
public void run()Pulls down the CRL file provided via URL and writes it locally. -
setCrlLocationUrl
Sets the URL to download the CRL from and starts a task to download the CRL every 30 minutes.- Parameters:
crlLocationUrl- - CRL's URL location
-
setCrlByUrlEnabled
public void setCrlByUrlEnabled(boolean crlByUrlEnabled) Enables or disables the CRL download. If it's disabled, starts a task to remove the CRL file path from property files.- Parameters:
crlByUrlEnabled- - whether the feature is enabled or not
-
destroy
public void destroy()Destroy method to shutdown the scheduler when the configuration is deleted. -
setSecurityLogger
public void setSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
-