mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8175874: Update Security.insertProviderAt to specify behavior when requested position is out of range.
Reviewed-by: mullan, valeriep
This commit is contained in:
parent
dbb788f34d
commit
9435cd1916
2 changed files with 19 additions and 3 deletions
|
@ -296,7 +296,10 @@ public final class Security {
|
|||
* Adds a new provider, at a specified position. The position is
|
||||
* the preference order in which providers are searched for
|
||||
* requested algorithms. The position is 1-based, that is,
|
||||
* 1 is most preferred, followed by 2, and so on.
|
||||
* 1 is most preferred, followed by 2, and so on. If the position
|
||||
* is less than 1 or greater than n, where n is the number of installed
|
||||
* providers, the provider (if not already installed) is inserted at
|
||||
* the end of the list, or at the n + 1 position.
|
||||
*
|
||||
* <p>If the given provider is installed at the requested position,
|
||||
* the provider that used to be at that position, and all providers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue