Class CrlGenerator

java.lang.Object
org.codice.ddf.security.crl.generator.CrlGenerator
All Implemented Interfaces:
Runnable

public class CrlGenerator extends Object implements Runnable
The CrlGenerator downloads and saves a Certificate Revocation List from a URL specified by crlLocationUrl.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CrlGenerator(org.codice.ddf.cxf.client.ClientBuilderFactory factory, org.osgi.service.event.EventAdmin eventAdmin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Destroy method to shutdown the scheduler when the configuration is deleted.
    void
    run()
    Pulls down the CRL file provided via URL and writes it locally.
    void
    setCrlByUrlEnabled(boolean crlByUrlEnabled)
    Enables or disables the CRL download.
    void
    setCrlLocationUrl(String crlLocationUrl)
    Sets the URL to download the CRL from and starts a task to download the CRL every 30 minutes.
    void
    setSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
      Specified by:
      run in interface Runnable
    • setCrlLocationUrl

      public void setCrlLocationUrl(String crlLocationUrl)
      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)