com.waveset.util
Class CRLDownloader

java.lang.Object
  extended bycom.waveset.util.CRLDownloader

public class CRLDownloader
extends java.lang.Object

Class which encapsulates all the logic for fetching a collection of CRLs from a URL


Field Summary
static long DEFAULT_CACHE_LIFETIME
           
 
Constructor Summary
CRLDownloader()
           
CRLDownloader(long cacheLifetime)
           
 
Method Summary
 java.util.Collection downloadCRLs(java.lang.String url, boolean cache)
          Downloads the CRL(s) from a given url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CACHE_LIFETIME

public static final long DEFAULT_CACHE_LIFETIME
See Also:
Constant Field Values
Constructor Detail

CRLDownloader

public CRLDownloader()

CRLDownloader

public CRLDownloader(long cacheLifetime)
Method Detail

downloadCRLs

public java.util.Collection downloadCRLs(java.lang.String url,
                                         boolean cache)
                                  throws WavesetException
Downloads the CRL(s) from a given url.

Parameters:
url - The url to download from. May be ldap, ldaps, or any standard url supported by java's URL class.
cache - If true, we will cache the result crls until the nextUpdate for the CRL or until the cacheLifetime has expired, whichever comes first.
Throws:
WavesetException