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 Details

  • Constructor Details

    • ShouldClearSslSessionPredicate

      public ShouldClearSslSessionPredicate(JavaVersionParser.JavaVersion javaVersion)
      Parameters:
      javaVersion - Current JVM version
  • Method Details

    • 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 class com.amazonaws.internal.SdkPredicate<SSLException>
      Parameters:
      sslEx - SSLException thrown during connect
      Returns:
      True is the SSL session cache should be cleared, false otherwise.