Class HttpCredentials


  • public class HttpCredentials
    extends Object
    • Field Detail

      • username

        public String username
      • password

        public String password
      • origin

        public String origin
        Restrain sending http credentials on specific origin (scheme://host:port).
      • send

        public HttpCredentialsSend send
        This option only applies to the requests sent from corresponding APIRequestContext and does not affect requests sent from the browser. "always" - Authorization header with basic authentication credentials will be sent with the each API request. 'unauthorized - the credentials are only sent when 401 (Unauthorized) response with WWW-Authenticate header is received. Defaults to "unauthorized".
    • Constructor Detail

      • HttpCredentials

        public HttpCredentials​(String username,
                               String password)
    • Method Detail

      • setOrigin

        public HttpCredentials setOrigin​(String origin)
        Restrain sending http credentials on specific origin (scheme://host:port).
      • setSend

        public HttpCredentials setSend​(HttpCredentialsSend send)
        This option only applies to the requests sent from corresponding APIRequestContext and does not affect requests sent from the browser. "always" - Authorization header with basic authentication credentials will be sent with the each API request. 'unauthorized - the credentials are only sent when 401 (Unauthorized) response with WWW-Authenticate header is received. Defaults to "unauthorized".