The Getimpl method in the Security class source code:
The Security.getimpl () method returns an array of objects.
The first bit of the array is based on the requested algorithm and an instance of the type object,
The second bit of the array is the unique identifier of the corresponding algorithm provider. Where the value of provider can be a null type, in which case the highest-priority provider is searched in the provider configuration file.
The following is the source
/*
* Returns an array of Objects:the first object in the array is
* An instance of implementation of the requested algorithm
* and type, and the second object in the array identifies the provider
* of that implementation.
* The <code>provider</code> argument can is null, in which case all
* configured providers is searched in order of preference.
*/
Static object[] Getimpl (string algorithm, String type, string provider)
Throws NoSuchAlgorithmException, Nosuchproviderexception {
if (Provider = = null) {
Return getinstance.getinstance
(Type, Getspiclass (type), algorithm). ToArray ();
} else {
Return getinstance.getinstance
(Type, Getspiclass (type), algorithm, provider). ToArray ();
}
}
The Getimpl () method in the Security class