Security.insertProviderAt
Class Overview | Class Members | 
  This Package | 
All Packages
 public static int insertProviderAt( Provider provider,
                                    int position )
Parameters
-  provider 
-  the provider to be added.
    
-  position 
-  the preference position that the caller would
 like for this provider.
    
Returns
     the actual preference position in which the provider was
 added, or -1 if the provider was not added because it is
 already installed.
    Description
 Adds a new provider, at a specified position. The position is
 the preference order in which providers are searched for
 requested algorithms. Note that it is not guaranteed that this
 preference will be respected. The position is 1-based, that is,
 1 is most preferred, followed by 2, and so on. Sometimes it
 will be legal to add a provider, but only in the last position,
 in which case the position argument will be ignored. 
 A provider cannot be added if it is already installed.
  
See Also
     getProvider, removeProvider