public static final KeyManagerFactory getInstance (String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException

Returns a KeyManagerFactory object that acts as a factory for key managers.

A new KeyManagerFactory object encapsulating the KeyManagerFactorySpi implementation from the specified provider is returned. The specified provider must be registered in the security provider list.

Note that the list of registered providers may be retrieved via the Security.getProviders() method.

Parameters:
algorithm    the standard name of the requested algorithm. See the Java Secure Socket Extension Reference Guide for information about standard algorithm names.
provider    the name of the provider.

Returns:  the new KeyManagerFactory object.

Exceptions:
NoSuchAlgorithmException    if a KeyManagerFactorySpi implementation for the specified algorithm is not available from the specified provider.
NoSuchProviderException    if the specified provider is not registered in the security provider list.
IllegalArgumentException    if the provider name is null or empty.
NullPointerException    if algorithm is null.

See also:
java.security.Provider