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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JavaVersionParser.JavaVersion
Fixed per http://bugs.java.com/view_bug.do?bug_id=8075750static final JavaVersionParser.JavaVersion
Fixed per http://bugs.java.com/view_bug.do?bug_id=8074944 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(SSLException sslEx) Evaluates this predicate on the given argument
-
Field Details
-
FIXED_JAVA_7
Fixed per http://bugs.java.com/view_bug.do?bug_id=8075750 -
FIXED_JAVA_8
Fixed per http://bugs.java.com/view_bug.do?bug_id=8074944
-
-
Constructor Details
-
ShouldClearSslSessionPredicate
- Parameters:
javaVersion
- Current JVM version
-
-
Method Details
-
test
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.
-