Interface AuthenticateCallback
- All Superinterfaces:
AsyncCallback<AuthenticateCallback.Params,
,AuthenticateCallback.Action> Callback
,NetworkAsyncCallback<AuthenticateCallback.Params,
,AuthenticateCallback.Action> NetworkCallback
public interface AuthenticateCallback
extends NetworkAsyncCallback<AuthenticateCallback.Params,AuthenticateCallback.Action>
The callback that is invoked when an HTTP request receives an authentication challenge and is
unable to respond using cached credentials. You can use this method to handle "basic" or "digest"
authentication.
The callback can be used to display a UI dialog to ask the user to enter the credentials (is not obligated).
Use the AuthenticateCallback.Action.cancel()
method to reject the authentication request.
Use the AuthenticateCallback.Action.authenticate(String, String)
method to provide the credentials. In
case you provide the credentials, the callback will not be invoked again for the current domain.
If the callback throws an exception, the AuthenticateCallback.Action.cancel()
method will be invoked.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
An action providing a response to theAuthenticateCallback
.static interface
The parameters of theAuthenticateCallback
. -
Method Summary
Methods inherited from interface com.teamdev.jxbrowser.callback.AsyncCallback
on