public long getCertCacheLifetime ( ) throws NumberFormatException { long value = 60 * 1000 ; String property = getProperty ( CERT_CACHE_LIFETIME ) ; if ( property != null && property . length ( ) > 0 ) { long parsedValue = Long . parseLong ( property ) ; if ( parsedValue > 0 ) { value = parsedValue ; } } // System property takes precedence property = System . getProperty ( CERT_CACHE_LIFETIME ) ; if ( property != null && property . length ( ) > 0 ) { long parsedValue = Long . parseLong ( property ) ; if ( parsedValue > 0 ) { value = parsedValue ; } } return value ; }
Returns the Cert cache lifetime . If this property is set to zero or less no caching is done . The value is the number of milliseconds the certificates are cached without checking for modifications on disk .