public void setTrustStore ( String trustStore , String trustPass , String trustManagerType , String trustStoreType ) { if ( ( trustStore == null ) || ( trustPass == null ) ) { this . trustStore = System . getProperty ( "javax.net.ssl.trustStore" ) ; this . trustPass = System . getProperty ( "javax.net.ssl.trustStorePassword" ) ; } else { this . trustStore = trustStore ; this . trustPass = trustPass ; } if ( trustManagerType != null ) { this . trustManagerType = trustManagerType ; } if ( trustStoreType != null ) { this . trustStoreType = trustStoreType ; } isTrustStoreSet = ( trustStore != null ) && ( trustPass != null ) ; }
Set the truststore password certificate type and the store type