private static int initializeTimeout ( ) { // Integer tmp = java.security.AccessController.doPrivileged( // new GetIntegerAction("com.sun.security.ocsp.timeout")); Integer tmp = Integer . getInteger ( "com.sun.security.ocsp.timeout" ) ; if ( tmp == null || tmp < 0 ) { return DEFAULT_CONNECT_TIMEOUT ; } // Convert to milliseconds, as the system property will be // specified in seconds return tmp * 1000 ; }
Initialize the timeout length by getting the OCSP timeout system property . If the property has not been set or if its value is negative set the timeout length to the default .