Package com.amazonaws.http.conn.ssl
Class ShouldClearSslSessionPredicate
- java.lang.Object
-
- com.amazonaws.internal.SdkPredicate<SSLException>
-
- com.amazonaws.http.conn.ssl.ShouldClearSslSessionPredicate
-
public class ShouldClearSslSessionPredicate extends com.amazonaws.internal.SdkPredicate<SSLException>
Determines whether we should apply the workaround to bug that causes the SSL session cache to be stuck in a bad state for either 24 hours or the next JVM restart. The workaround is to clear out SSL sessions upon receiving an SSL exception. Whether we apply the workaround depends on the type of SSL exception thrown and the JVM version in use.- See Also:
- http://tiny/1jjdylxma/wamazindeJava
-
-
Field Summary
Fields Modifier and Type Field Description static JavaVersionParser.JavaVersion
FIXED_JAVA_7
Fixed per http://bugs.java.com/view_bug.do?bug_id=8075750static JavaVersionParser.JavaVersion
FIXED_JAVA_8
Fixed per http://bugs.java.com/view_bug.do?bug_id=8074944
-
Constructor Summary
Constructors Constructor Description ShouldClearSslSessionPredicate(JavaVersionParser.JavaVersion javaVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(SSLException sslEx)
Evaluates this predicate on the given argument
-
-
-
Field Detail
-
FIXED_JAVA_7
public static final JavaVersionParser.JavaVersion FIXED_JAVA_7
Fixed per http://bugs.java.com/view_bug.do?bug_id=8075750
-
FIXED_JAVA_8
public static final JavaVersionParser.JavaVersion FIXED_JAVA_8
Fixed per http://bugs.java.com/view_bug.do?bug_id=8074944
-
-
Constructor Detail
-
ShouldClearSslSessionPredicate
public ShouldClearSslSessionPredicate(JavaVersionParser.JavaVersion javaVersion)
- Parameters:
javaVersion
- Current JVM version
-
-
Method Detail
-
test
public boolean test(SSLException sslEx)
Description copied from class:com.amazonaws.internal.SdkPredicate
Evaluates this predicate on the given argument- Specified by:
test
in classcom.amazonaws.internal.SdkPredicate<SSLException>
- Parameters:
sslEx
- SSLException thrown during connect- Returns:
- True is the SSL session cache should be cleared, false otherwise.
-
-