equal
deleted
inserted
replaced
87 private static int initializeTimeout() { |
87 private static int initializeTimeout() { |
88 int tmp = java.security.AccessController.doPrivileged( |
88 int tmp = java.security.AccessController.doPrivileged( |
89 new GetIntegerAction("com.sun.security.ocsp.timeout", |
89 new GetIntegerAction("com.sun.security.ocsp.timeout", |
90 DEFAULT_CONNECT_TIMEOUT)); |
90 DEFAULT_CONNECT_TIMEOUT)); |
91 if (tmp < 0) { |
91 if (tmp < 0) { |
92 tmp = DEFAULT_CONNECT_TIMEOUT; |
92 return DEFAULT_CONNECT_TIMEOUT; |
93 } |
93 } |
94 // Convert to milliseconds, as the system property will be |
94 // Convert to milliseconds, as the system property will be |
95 // specified in seconds |
95 // specified in seconds |
96 return tmp * 1000; |
96 return tmp * 1000; |
97 } |
97 } |