Class AuthChallengeResponse
- java.lang.Object
-
- org.openqa.selenium.devtools.fetch.model.AuthChallengeResponse
-
@Beta public class AuthChallengeResponse extends java.lang.Object
Response to an AuthChallenge.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthChallengeResponse.Response
-
Constructor Summary
Constructors Constructor Description AuthChallengeResponse(AuthChallengeResponse.Response response, java.util.Optional<java.lang.String> username, java.util.Optional<java.lang.String> password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getPassword()
The password to provide, possibly empty.AuthChallengeResponse.Response
getResponse()
The decision on what to do in response to the authorization challenge.java.util.Optional<java.lang.String>
getUsername()
The username to provide, possibly empty.
-
-
-
Constructor Detail
-
AuthChallengeResponse
public AuthChallengeResponse(AuthChallengeResponse.Response response, java.util.Optional<java.lang.String> username, java.util.Optional<java.lang.String> password)
-
-
Method Detail
-
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 java.util.Optional<java.lang.String> getUsername()
The username to provide, possibly empty. Should only be set if response is ProvideCredentials.
-
getPassword
public java.util.Optional<java.lang.String> getPassword()
The password to provide, possibly empty. Should only be set if response is ProvideCredentials.
-
-