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.
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. |
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. |
Provider
Diagram: login