@Test public void testClassifyCertPathValidatorException() { LdapTlsHandshakeFailCause classification = LdapTlsHandshakeExceptionClassifier.classify( new Exception( new Exception( new Exception( new Exception( new CertPathValidatorException( "foo", null, null, -1, BasicReason.ALGORITHM_CONSTRAINED ) ) ) ) ) ); assertThat( classification.getReason(), equalTo( ( Reason ) BasicReason.ALGORITHM_CONSTRAINED ) ); assertThat( classification.getReasonPhrase(), equalTo( "Failed to verify certification path" ) ); assertThat( classification.getRootCause(), instanceOf( CertPathValidatorException.class ) ); }
public static LdapTlsHandshakeFailCause classify( Throwable cause ) { return classify( cause, null ); }
LdapTlsHandshakeExceptionClassifier { public static LdapTlsHandshakeFailCause classify( Throwable cause ) { return classify( cause, null ); } }
LdapTlsHandshakeExceptionClassifier { public static LdapTlsHandshakeFailCause classify( Throwable cause ) { return classify( cause, null ); } private  LdapTlsHandshakeExceptionClassifier(); }
LdapTlsHandshakeExceptionClassifier { public static LdapTlsHandshakeFailCause classify( Throwable cause ) { return classify( cause, null ); } private  LdapTlsHandshakeExceptionClassifier(); static LdapTlsHandshakeFailCause classify( Throwable cause ); static LdapTlsHandshakeFailCause classify( Throwable cause, X509Certificate certificate ); }
LdapTlsHandshakeExceptionClassifier { public static LdapTlsHandshakeFailCause classify( Throwable cause ) { return classify( cause, null ); } private  LdapTlsHandshakeExceptionClassifier(); static LdapTlsHandshakeFailCause classify( Throwable cause ); static LdapTlsHandshakeFailCause classify( Throwable cause, X509Certificate certificate );  }