private boolean isExceptionAffected ( final String exceptionMessage ) { if ( exceptionMessage != null ) { for ( String affectedMessage : EXCEPTION_MESSAGE_WHITELIST ) { if ( exceptionMessage . contains ( affectedMessage ) ) { return true ; } } } return false ; }
Restrict the workaround to only certain types of SSLExceptions that indicate the bug may have been encountered .