void function ( ) { Properties loc0 = new Properties ( ) ; loc0 . setProperty ( "srini_string" , "srini_string" ) ; loc0 . setProperty ( "srini_string" , "srini_string" ) ; loc0 . setProperty ( "srini_string" , getGoodServerCert ( ) ) ; testConnect ( loc0 , true ) ; }
connect using ssl and attempt to validate the server 's certificate against the proper pre shared certificate . the certificate is specified as a string eg . the '' ----- begin certificate ----- ... etc '' . concode_field_sep String badServerCertPath concode_elem_sep String goodServerCertPath concode_elem_sep String IS_ENABLED_PROP_NAME concode_elem_sep String serverJdbcUrl concode_field_sep void connectSSLWithValidationNoCert concode_elem_sep void connectSSLWithValidationMissingSysProp concode_elem_sep void connectSSLWithValidationProperCertFile concode_elem_sep Collection<Object[]> data concode_elem_sep void fileCertInvalid concode_elem_sep boolean matchesExpected concode_elem_sep String getGoodServerCert concode_elem_sep String getUsername concode_elem_sep Connection getConnection concode_elem_sep void connectSSLWithValidationProperCertSysProp concode_elem_sep String getPassword concode_elem_sep String getBadServerCert concode_elem_sep String getServerJdbcUrl concode_elem_sep void testConnect concode_elem_sep void testConnect concode_elem_sep String loadFile concode_elem_sep void connectSSLWithValidationMissingEnvVar concode_elem_sep void stringCertInvalid concode_elem_sep void connectSSLWithValidationWrongCert concode_elem_sep void connectSSLWithValidationProperCertEnvVar