AuthProviderpublic abstract class AuthProvider extends Provider {@code AuthProvider} is an abstract superclass for Java Security {@code
Provider} which provide login and logout. |
Fields Summary |
---|
private static final long | serialVersionUID |
Constructors Summary |
---|
protected AuthProvider(String name, double version, String info)Constructs a new instance of {@code AuthProvider} with its name, version
and description.
super(name, version, info);
|
Methods Summary |
---|
public abstract void | login(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler)Performs a login into this {@code AuthProvider}. The specified {@code
CallbackHandler} is used to obtain information from the caller.
If a {@code SecurityManager} is installed, code calling this method needs
the {@code SecurityPermission} {@code authProvider.NAME} (where NAME is
the provider name) to be granted, otherwise a {@code SecurityException}
will be thrown.
| public abstract void | logout()Performs a logout from this {@code AuthProvider}.
If a {@code SecurityManager} is installed, code calling this method needs
the {@code SecurityPermission} {@code authProvider.NAME} (where NAME is
the provider name) to be granted, otherwise a {@code SecurityException}
will be thrown.
| public abstract void | setCallbackHandler(javax.security.auth.callback.CallbackHandler handler)Sets the {@code CallbackHandler} to this {@code AuthProvider}. If no
handler is passed to the {@link #login(Subject, CallbackHandler)} method,
this {@code AuthProvider} is using the specified {@code CallbackHandler}.
If no handler is set, this {@code AuthProvider} uses the {@code
CallbackHandler} specified by the {@code
auth.login.defaultCallbackHandler} security property.
If a {@code SecurityManager} is installed, code calling this method needs
the {@code SecurityPermission} {@code authProvider.NAME} (where NAME is
the provider name) to be granted, otherwise a {@code SecurityException}
will be thrown.
|
|