public static Configuration getInstance (String type, Parameters params) throws NoSuchAlgorithmException

Returns a Configuration object of the specified type.

This method traverses the list of registered security providers, starting with the most preferred Provider. A new Configuration object encapsulating the ConfigurationSpi implementation from the first Provider that supports the specified type is returned.

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

Parameters:
type    the specified Configuration type. See the Configuration section in the Java Cryptography Architecture Standard Algorithm Name Documentation for a list of standard Configuration types.
params    parameters for the Configuration, which may be null.

Returns:  the new Configuration object.

Exceptions:
SecurityException    if the caller does not have permission to get a Configuration instance for the specified type.
NullPointerException    if the specified type is null.
IllegalArgumentException    if the specified parameters are not understood by the ConfigurationSpi implementation from the selected Provider.
NoSuchAlgorithmException    if no Provider supports a ConfigurationSpi implementation for the specified type.

See also:
Provider

Since:  1.6