Class AuthenticateCallback.Action

java.lang.Object
com.teamdev.jxbrowser.callback.AsyncCallbackAction<com.teamdev.jxbrowser.net.internal.rpc.Authenticate.Response>
com.teamdev.jxbrowser.net.callback.AuthenticateCallback.Action
Enclosing interface:
AuthenticateCallback

public static final class AuthenticateCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.net.internal.rpc.Authenticate.Response>
An action providing a response to the AuthenticateCallback.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Action(Consumer<com.teamdev.jxbrowser.net.internal.rpc.Authenticate.Response> consumer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    authenticate(String userName, String password)
    Notifies the engine that the authentication should be performed with the particular userName and password.
    void
    Notifies the engine that the authentication should be canceled.

    Methods inherited from class com.teamdev.jxbrowser.callback.AsyncCallbackAction

    isClosed

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Action

      public Action(Consumer<com.teamdev.jxbrowser.net.internal.rpc.Authenticate.Response> consumer)
  • Method Details

    • authenticate

      public void authenticate(String userName, String password)
      Notifies the engine that the authentication should be performed with the particular userName and password.
      Parameters:
      userName - the username to use for authenticating
      password - the password to use for authenticating
    • cancel

      public void cancel()
      Notifies the engine that the authentication should be canceled.