logback-android/src/main/java/ch/qos/logback/core/net/ssl/TrustManagerFactoryFactoryBean.java
public TrustManagerFactory createTrustManagerFactory()
      throws NoSuchProviderException, NoSuchAlgorithmException {

    return getProvider() != null ?
        TrustManagerFactory.getInstance(getAlgorithm(), getProvider())
        : TrustManagerFactory.getInstance(getAlgorithm());
  }
public TrustManagerFactory createTrustManagerFactory()
      throws NoSuchProviderException, NoSuchAlgorithmException {

    return getProvider() != null ?
        TrustManagerFactory.getInstance(getAlgorithm(), getProvider())
        : TrustManagerFactory.getInstance(getAlgorithm());
  }
Creates a {@link TrustManagerFactory} using the receiver's configuration.
@return factory object
@throws NoSuchProviderException if the provider specified by
{@link #setProvider(String)} is not known to the platform
@throws NoSuchAlgorithmException if the algorithm specified by
{@link #setAlgorithm(String)} is not known to the specified provider
(or to the default platform provider if no provider is specified)