Class AuthChallengeResponse
java.lang.Object
org.openqa.selenium.devtools.v115.fetch.model.AuthChallengeResponse
Response to an AuthChallenge.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAuthChallengeResponse
(AuthChallengeResponse.Response response, Optional<String> username, Optional<String> password) -
Method Summary
Modifier and TypeMethodDescriptionThe password to provide, possibly empty.The decision on what to do in response to the authorization challenge.The username to provide, possibly empty.
-
Constructor Details
-
AuthChallengeResponse
public AuthChallengeResponse(AuthChallengeResponse.Response response, Optional<String> username, Optional<String> password)
-
-
Method Details
-
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
The username to provide, possibly empty. Should only be set if response is ProvideCredentials. -
getPassword
The password to provide, possibly empty. Should only be set if response is ProvideCredentials.
-