public static TrustManagerFactory trustManagerFactory ( AbstractConfig config , String key ) { final String trustManagerFactoryType = config . getString ( key ) ; try { return TrustManagerFactory . getInstance ( trustManagerFactoryType ) ; } catch ( NoSuchAlgorithmException e ) { ConfigException exception = new ConfigException ( key , trustManagerFactoryType , "Unknown Algorithm." ) ; exception . initCause ( e ) ; throw exception ; } }
Method will create a TrustManagerFactory based on the Algorithm type specified in the config .