| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.auth |
Client HTTP authentication APIs.
|
| org.apache.hc.client5.http.impl.auth |
Standard and common HTTP authentication schemes.
|
| org.apache.hc.client5.http.impl.classic |
Classic HTTP client API implementation that supports HTTP/1.1 transport
only.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
BearerToken
Opaque token
Credentials usually representing a set of claims, often encrypted
or signed. |
class |
KerberosCredentials
已过时。
Do not use. The GGS based experimental authentication schemes are no longer
supported. Consider using Basic or Bearer authentication with TLS instead.
|
class |
NTCredentials
已过时。
Do not use. the NTLM authentication scheme is no longer supported.
Consider using Basic or Bearer authentication with TLS instead.
|
class |
UsernamePasswordCredentials
Simple
Credentials representation based on a user name / password
pair. |
| 限定符和类型 | 方法和说明 |
|---|---|
Credentials |
CredentialsProvider.getCredentials(AuthScope authScope,
HttpContext context)
Returns
credentials for the given authentication scope,
if available. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CredentialsStore.setCredentials(AuthScope authScope,
Credentials credentials)
Sets the
credentials for the given authentication
scope. |
| 限定符和类型 | 方法和说明 |
|---|---|
Credentials |
SystemDefaultCredentialsProvider.getCredentials(AuthScope authScope,
HttpContext context) |
Credentials |
BasicCredentialsProvider.getCredentials(AuthScope authScope,
HttpContext context) |
| 限定符和类型 | 方法和说明 |
|---|---|
CredentialsProviderBuilder |
CredentialsProviderBuilder.add(AuthScope authScope,
Credentials credentials) |
CredentialsProviderBuilder |
CredentialsProviderBuilder.add(HttpHost httpHost,
Credentials credentials) |
void |
BasicScheme.initPreemptive(Credentials credentials) |
void |
DigestScheme.initPreemptive(Credentials credentials,
String cnonce,
String realm) |
void |
SystemDefaultCredentialsProvider.setCredentials(AuthScope authScope,
Credentials credentials) |
void |
BasicCredentialsProvider.setCredentials(AuthScope authScope,
Credentials credentials) |
| 限定符和类型 | 方法和说明 |
|---|---|
Socket |
ProxyClient.tunnel(HttpHost proxy,
HttpHost target,
Credentials credentials) |
Copyright © 2023. All rights reserved.