Class AuthChallengeResponse


  • @Beta
    public class AuthChallengeResponse
    extends java.lang.Object
    Response to an AuthChallenge.
    • 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.