Class: java.security.AuthProvider
- public abstract class AuthProvider
- extends Provider
While callers may invoke login directly,
the provider may also invoke login on behalf of callers
if it determines that a login must be performed
prior to certain operations.
Inheritance
Superclass tree: Implements:Methods
-
AuthProvidertop
Constructs a provider with the specified name, version number, and information. -
logintop
Log in to this provider.The provider relies on a
CallbackHandlerto obtain authentication information from the caller (a PIN, for example). If the caller passes anullhandler to this method, the provider uses the handler set in thesetCallbackHandlermethod. If no handler was set in that method, the provider queries the auth.login.defaultCallbackHandler security property for the fully qualified class name of a default handler implementation. If the security property is not set, the provider is assumed to have alternative means for obtaining authentication information. -
logouttop
public abstract void logout() throws LoginExceptionLog out from this provider. -
setCallbackHandlertop
public abstract void setCallbackHandler(CallbackHandler handler)Set aCallbackHandler.The provider uses this handler if one is not passed to the
loginmethod. The provider also uses this handler if it invokesloginon behalf of callers. In either case if a handler is not set via this method, the provider queries the auth.login.defaultCallbackHandler security property for the fully qualified class name of a default handler implementation. If the security property is not set, the provider is assumed to have alternative means for obtaining authentication information.
