public static final KeyManagerFactory getInstance (String algorithm) throws NoSuchAlgorithmException

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

This method traverses the list of registered security Providers, starting with the most preferred Provider. A new KeyManagerFactory object encapsulating the KeyManagerFactorySpi implementation from the first Provider that supports the specified algorithm is returned.

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.

Returns:  the new KeyManagerFactory object.

Exceptions:
NoSuchAlgorithmException    if no Provider supports a KeyManagerFactorySpi implementation for the specified algorithm.
NullPointerException    if algorithm is null.

See also:
java.security.Provider