public static String getAlgorithmProperty(String algName,
String propName)
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).
public static int insertProviderAt(Provider provider,
int position)
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.
If the given provider is installed at the requested position,
the provider that used to be at that position, and all providers
with a position greater than position, are shifted up
one position (towards the end of the list of installed providers).
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.
When the specified provider is removed, all providers located
at a position greater than where the specified provider was are shifted
down one position (towards the head of the list of installed providers).
This method returns silently if the provider is not installed.
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.