code: public static TrustManager[] resolveTrustManagers(final String keystoreType,
  		final String password, final File keystoreFile, final String trustManagerAlgorithm)
  		throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException,
  		KeyStoreException
  	{
  		final KeyStore keyStore = KeyStoreFactory.newKeyStore(keystoreType, password, keystoreFile);
  		final TrustManagerFactory trustFactory = TrustManagerFactory
  			.getInstance(trustManagerAlgorithm);
  		trustFactory.init(keyStore);
  		final TrustManager[] trustManagers = trustFactory.getTrustManagers();
  		return trustManagers;
  	}
docs: Resolve the {@link TrustManager} array from the keystore that is resolved from the given
  parameters.
  
  @param keystoreType
  the keystore type
  @param password
  the password
  @param keystoreFile
  the keystore file
  @param trustManagerAlgorithm
  the trust manager algorithm
  @return the trust manager[]
  @throws NoSuchAlgorithmException
  the no such algorithm exception
  @throws CertificateException
  the certificate exception
  @throws FileNotFoundException
  the file not found exception
  @throws IOException
  Signals that an I/O exception has occurred.
  @throws KeyStoreException
  the key store exception