public class ShouldClearSslSessionPredicate extends SdkPredicate<javax.net.ssl.SSLException>
Modifier and Type | Field and Description |
---|---|
private static java.util.List<java.lang.String> |
EXCEPTION_MESSAGE_WHITELIST
Message that may indicate the SSL session cache is in a bad state and needs to be cleared.
|
static JavaVersionParser.JavaVersion |
FIXED_JAVA_7
Fixed per http://bugs.java.com/view_bug.do?bug_id=8075750
|
static JavaVersionParser.JavaVersion |
FIXED_JAVA_8
Fixed per http://bugs.java.com/view_bug.do?bug_id=8074944
|
private JavaVersionParser.JavaVersion |
javaVersion |
Constructor and Description |
---|
ShouldClearSslSessionPredicate(JavaVersionParser.JavaVersion javaVersion) |
Modifier and Type | Method and Description |
---|---|
private boolean |
isExceptionAffected(java.lang.String exceptionMessage)
Restrict the workaround to only certain types of SSLExceptions that indicate the bug may have
been encountered.
|
private boolean |
isJvmAffected() |
boolean |
test(javax.net.ssl.SSLException sslEx)
Evaluates this predicate on the given argument
|
public static final JavaVersionParser.JavaVersion FIXED_JAVA_7
public static final JavaVersionParser.JavaVersion FIXED_JAVA_8
private static java.util.List<java.lang.String> EXCEPTION_MESSAGE_WHITELIST
private final JavaVersionParser.JavaVersion javaVersion
public ShouldClearSslSessionPredicate(JavaVersionParser.JavaVersion javaVersion)
javaVersion
- Current JVM versionpublic boolean test(javax.net.ssl.SSLException sslEx)
SdkPredicate
test
in class SdkPredicate<javax.net.ssl.SSLException>
sslEx
- SSLException thrown during connectprivate boolean isJvmAffected()
private boolean isExceptionAffected(java.lang.String exceptionMessage)
exceptionMessage
- Message of the SSLException