IT. Expert System.

Android Reference

HttpAuthHeader


android.net.http

Class HttpAuthHeader



  • public class HttpAuthHeader
    extends Object
    HttpAuthHeader: a class to store HTTP authentication-header parameters. For more information, see: RFC 2617: HTTP Authentication.
    • Constructor Detail

      • HttpAuthHeader

        public HttpAuthHeader(String header)
        Creates a new HTTP-authentication header object from the input header string. The header string is assumed to contain parameters of at most one authentication-scheme (ensured by the caller).
    • Method Detail

      • isProxy

        public boolean isProxy()
        Returns:
        True iff this is a proxy authentication header.
      • setProxy

        public void setProxy()
        Marks this header as a proxy authentication header.
      • getUsername

        public String getUsername()
        Returns:
        The username string.
      • setUsername

        public void setUsername(String username)
        Sets the username string.
      • getPassword

        public String getPassword()
        Returns:
        The password string.
      • setPassword

        public void setPassword(String password)
        Sets the password string.
      • isBasic

        public boolean isBasic()
        Returns:
        True iff this is the BASIC-authentication request.
      • isDigest

        public boolean isDigest()
        Returns:
        True iff this is the DIGEST-authentication request.
      • getScheme

        public int getScheme()
        Returns:
        The authentication scheme requested. We currently support two schemes: HttpAuthHeader.BASIC - basic, and HttpAuthHeader.DIGEST - digest (algorithm=MD5, QOP="auth").
      • getStale

        public boolean getStale()
        Returns:
        True if indicating that the previous request from the client was rejected because the nonce value was stale.
      • getRealm

        public String getRealm()
        Returns:
        The realm value or null if there is none.
      • getNonce

        public String getNonce()
        Returns:
        The nonce value or null if there is none.
      • getOpaque

        public String getOpaque()
        Returns:
        The opaque value or null if there is none.
      • getQop

        public String getQop()
        Returns:
        The QOP ("quality-of_protection") value or null if there is none. The QOP value is always lower-case.
      • getAlgorithm

        public String getAlgorithm()
        Returns:
        The name of the algorithm used or null if there is none. By default, MD5 is used.
      • isSupportedScheme

        public boolean isSupportedScheme()
        Returns:
        True iff the authentication scheme requested by the server is supported; currently supported schemes: BASIC, DIGEST (only algorithm="md5", no qop or qop="auth).


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 229 / 158777341. Delta: 0.03274 с