Gets a specified property for an algorithm. The algorithm name
should be a standard name. See Appendix A in the
Java Cryptography Architecture API Specification & Reference
for information about standard algorithm names.
One possible use is by specialized algorithm parsers, which may map
classes to algorithms which they understand (much like Key parsers
do).
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.
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.