Class AuthChallengeResponse

java.lang.Object
org.openqa.selenium.devtools.v85.fetch.model.AuthChallengeResponse

@Beta public class AuthChallengeResponse extends Object
Response to an AuthChallenge.
  • Constructor Details

  • Method Details

    • getResponse

      public AuthChallengeResponse.Response getResponse()
      The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.
    • getUsername

      public Optional<String> getUsername()
      The username to provide, possibly empty. Should only be set if response is ProvideCredentials.
    • getPassword

      public Optional<String> getPassword()
      The password to provide, possibly empty. Should only be set if response is ProvideCredentials.