@Test public void testClassifyCertificateNotYetValidException() { LdapTlsHandshakeFailCause classification = LdapTlsHandshakeExceptionClassifier .classify( new CertificateNotYetValidException( "foo" ) ); assertThat( classification.getReason(), equalTo( ( Reason ) BasicReason.NOT_YET_VALID ) ); assertThat( classification.getReasonPhrase(), equalTo( "Certificate not yet valid" ) ); assertThat( classification.getRootCause(), instanceOf( CertificateNotYetValidException.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 );  }