gnu.crypto.sasl
Class AuthInfo
A static class for creating
IAuthInfoProvider
providers. It
transparently locates and uses any provider instances, based on the value
assigned to the System property with the key
gnu.crypto.sasl.auth.info.provider.pkgs
. If more than one is
specified they SHOULD be separated with a vertical bar character. Please note
that the GNU provider is always added last to the list, disregarding whether
it was mentioned or not in the value of that property, or if it that property
was not defined.
static IAuthInfoProvider | getProvider(String mechanism) - A convenience method to return the authentication information provider
for a designated SASL mechnanism.
|
getProvider
public static IAuthInfoProvider getProvider(String mechanism)
A convenience method to return the authentication information provider
for a designated SASL mechnanism. It goes through all the installed
provider factories, one at a time, and attempts to return a new instance
of the provider for the designated mechanism. It stops at the first
factory returning a non-null provider.
mechanism
- the name of a SASL mechanism.
- an implementation that provides
IAuthInfoProvider
for that
mechanism; or null
if none found.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.