## Uses of Interface
org.apache.http.auth.Credentials

- Packages that use Credentials
  软件包 | 描述
  --- | ---
  org.apache.http.auth | 客户端HTTP认证API。
  org.apache.http.client | 客户端HTTP通信API。
  org.apache.http.impl.auth | 标准和常规HTTP认证方案的默认实现。
  org.apache.http.impl.client | 默认HTTP客户端实现。

- - ### Uses of Credentials in org.apache.http.auth

    Classes in org.apache.http.auth that implement Credentials
    Modifier and Type | Class and Description
    --- | ---
    `class` | `KerberosCredentials` 基于Kerberos身份验证的GSSCredential实现`Credentials` 。
    `class` | `NTCredentials` 适用于包含Windows特定属性（例如用户所属域名）的Microsoft Windows平台的`Credentials`实现。
    `class` | `UsernamePasswordCredentials` 简单的`Credentials`实现基于用户名/密码对。

    Methods in org.apache.http.auth that return Credentials
    Modifier and Type | Method and Description
    --- | ---
    `Credentials` | AuthState.`getCredentials()` 退货实际`Credentials` 。
    `Credentials` | AuthOption.`getCredentials()`

    Methods in org.apache.http.auth with parameters of type Credentials
    Modifier and Type | Method and Description
    --- | ---
    `Header` | AuthScheme.`authenticate(Credentials credentials, HttpRequest request)` 已过时。 （4.1）使用`ContextAwareAuthScheme.authenticate(Credentials, HttpRequest, org.apache.http.protocol.HttpContext)`
    `Header` | ContextAwareAuthScheme.`authenticate(Credentials credentials, HttpRequest request, HttpContext context)` 为给定的一组`Credentials`生成一个授权字符串。
    `void` | AuthState.`setCredentials(Credentials credentials)` 已过时。 （4.2）使用`AuthState.update(AuthScheme, Credentials)`
    `void` | AuthState.`update(AuthScheme authScheme, Credentials credentials)` 使用`AuthScheme`和`Credentials`更新身份验证状态。

    Constructors in org.apache.http.auth with parameters of type Credentials
    Constructor and Description
    `AuthOption(AuthScheme authScheme, Credentials creds)`

  - ### Uses of Credentials in org.apache.http.client

    Methods in org.apache.http.client that return Credentials
    Modifier and Type | Method and Description
    --- | ---
    `Credentials` | CredentialsProvider.`getCredentials(AuthScope authscope)` 获取给定身份验证范围的`credentials` 。

    Methods in org.apache.http.client with parameters of type Credentials
    Modifier and Type | Method and Description
    --- | ---
    `void` | CredentialsProvider.`setCredentials(AuthScope authscope, Credentials credentials)` 为给定的认证范围设置`credentials` 。

  - ### Uses of Credentials in org.apache.http.impl.auth

    Methods in org.apache.http.impl.auth with parameters of type Credentials
    Modifier and Type | Method and Description
    --- | ---
    `Header` | BasicScheme.`authenticate(Credentials credentials, HttpRequest request)` 已过时。 （4.2）使用`ContextAwareAuthScheme.authenticate( Credentials, HttpRequest, org.apache.http.protocol.HttpContext)`
    `Header` | DigestScheme.`authenticate(Credentials credentials, HttpRequest request)` 已过时。 （4.2）使用`ContextAwareAuthScheme.authenticate( Credentials, HttpRequest, org.apache.http.protocol.HttpContext)`
    `Header` | GGSSchemeBase.`authenticate(Credentials credentials, HttpRequest request)` 已过时。 （4.2）使用`ContextAwareAuthScheme.authenticate( Credentials, HttpRequest, org.apache.http.protocol.HttpContext)`
    `Header` | NegotiateScheme.`authenticate(Credentials credentials, HttpRequest request)` 已过时。
    `Header` | NTLMScheme.`authenticate(Credentials credentials, HttpRequest request)`
    `Header` | BasicScheme.`authenticate(Credentials credentials, HttpRequest request, HttpContext context)` 为给定的一组`Credentials`生成基本授权标题。
    `Header` | AuthSchemeBase.`authenticate(Credentials credentials, HttpRequest request, HttpContext context)`
    `Header` | DigestScheme.`authenticate(Credentials credentials, HttpRequest request, HttpContext context)` 为给定的一组`Credentials` ，方法名称和URI生成摘要授权字符串。
    `Header` | GGSSchemeBase.`authenticate(Credentials credentials, HttpRequest request, HttpContext context)`
    `Header` | NegotiateScheme.`authenticate(Credentials credentials, HttpRequest request, HttpContext context)` 已过时。 根据processChallenge创建的令牌生成协商授权头。
    `Header` | SPNegoScheme.`authenticate(Credentials credentials, HttpRequest request, HttpContext context)` 根据processChallenge创建的令牌生成SPNEGO授权头文件。
    `Header` | KerberosScheme.`authenticate(Credentials credentials, HttpRequest request, HttpContext context)` 根据processChallenge创建的令牌生成KERBEROS授权头。
    `static Header` | BasicScheme.`authenticate(Credentials credentials, String charset, boolean proxy)` 已过时。 （4.3）使用`BasicScheme.authenticate(Credentials, HttpRequest, HttpContext)` 。
    `protected byte[]` | GGSSchemeBase.`generateGSSToken(byte[] input, Oid oid, String authServer, Credentials credentials)`
    `protected byte[]` | GGSSchemeBase.`generateToken(byte[] input, String authServer, Credentials credentials)`
    `protected byte[]` | NegotiateScheme.`generateToken(byte[] input, String authServer, Credentials credentials)` 已过时。
    `protected byte[]` | SPNegoScheme.`generateToken(byte[] input, String authServer, Credentials credentials)`
    `protected byte[]` | KerberosScheme.`generateToken(byte[] input, String authServer, Credentials credentials)`

  - ### Uses of Credentials in org.apache.http.impl.client

    Methods in org.apache.http.impl.client that return Credentials
    Modifier and Type | Method and Description
    --- | ---
    `Credentials` | SystemDefaultCredentialsProvider.`getCredentials(AuthScope authscope)`
    `Credentials` | BasicCredentialsProvider.`getCredentials(AuthScope authscope)`

    Methods in org.apache.http.impl.client with parameters of type Credentials
    Modifier and Type | Method and Description
    --- | ---
    `void` | SystemDefaultCredentialsProvider.`setCredentials(AuthScope authscope, Credentials credentials)`
    `void` | BasicCredentialsProvider.`setCredentials(AuthScope authscope, Credentials credentials)`
    `Socket` | ProxyClient.`tunnel(HttpHost proxy, HttpHost target, Credentials credentials)`

Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.

本帮助文档是使用 《谷歌翻译》翻译，请与英文版配合使用 by--QQ:654638585