public int getDelegationKeyCacheLifetime ( ) { int valueInt = 0 ; String valueStr = System . getProperty ( DELEGATION_KEY_CACHE_LIFETIME ) ; if ( valueStr != null && valueStr . length ( ) > 0 ) { int parsedvalueInt = Integer . parseInt ( valueStr ) ; if ( parsedvalueInt > 0 ) { valueInt = parsedvalueInt ; } } if ( valueInt == - 1 ) { // Didn't find a system property valueStr = getProperty ( DELEGATION_KEY_CACHE_LIFETIME ) ; if ( valueStr != null && valueStr . length ( ) > 0 ) { int parsedvalueInt = Integer . parseInt ( valueStr ) ; if ( parsedvalueInt > 0 ) { valueInt = parsedvalueInt ; } } } return valueInt ; }
Returns the delegation key cache lifetime for all delegations from this JVM . If this property is not set or set to zero or less no caching is done .