logback-android/src/main/java/ch/qos/logback/core/net/ssl/KeyManagerFactoryFactoryBean.java
public KeyManagerFactory createKeyManagerFactory()
      throws NoSuchProviderException, NoSuchAlgorithmException {

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

    return getProvider() != null ?
        KeyManagerFactory.getInstance(getAlgorithm(), getProvider())
        : KeyManagerFactory.getInstance(getAlgorithm());
  }
Creates a {@link KeyManagerFactory} 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)