Uses of Interface
org.apache.http.auth.Credentials
-
Packages that use Credentials Package Description org.apache.http.auth Client HTTP authentication APIs.org.apache.http.client Client HTTP communication APIs.org.apache.http.client.fluent Simple facade APIs for HttpClient based on the concept of a fluent interface.org.apache.http.client.protocol Client specific HTTP protocol handlers.org.apache.http.impl.auth Default implementations of standard and common HTTP authentication schemes.org.apache.http.impl.client Default HTTP client implementation. -
-
Uses of Credentials in org.apache.http.auth
Classes in org.apache.http.auth that implement Credentials Modifier and Type Class Description class
KerberosCredentials
Credentials
implementation based on GSSCredential for Kerberos Authentication.class
NTCredentials
Credentials
implementation for Microsoft Windows platforms that includes Windows specific attributes such as name of the domain the user belongs to.class
UsernamePasswordCredentials
SimpleCredentials
implementation based on a user name / password pair.Fields in org.apache.http.auth declared as Credentials Modifier and Type Field Description private Credentials
AuthState. credentials
Credentials selected for authenticationprivate Credentials
AuthOption. creds
Methods in org.apache.http.auth that return Credentials Modifier and Type Method Description Credentials
AuthOption. getCredentials()
Credentials
AuthState. getCredentials()
Returns actualCredentials
.Methods in org.apache.http.auth with parameters of type Credentials Modifier and Type Method Description org.apache.http.Header
AuthScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request)
org.apache.http.Header
ContextAwareAuthScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
Produces an authorization string for the given set ofCredentials
.void
AuthState. setCredentials(Credentials credentials)
Deprecated.void
AuthState. update(AuthScheme authScheme, Credentials credentials)
Updates the auth state withAuthScheme
andCredentials
.Constructors in org.apache.http.auth with parameters of type Credentials Constructor 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 Description Credentials
CredentialsProvider. getCredentials(AuthScope authscope)
Get thecredentials
for the given authentication scope.Methods in org.apache.http.client with parameters of type Credentials Modifier and Type Method Description void
CredentialsProvider. setCredentials(AuthScope authscope, Credentials credentials)
Sets thecredentials
for the given authentication scope. -
Uses of Credentials in org.apache.http.client.fluent
Methods in org.apache.http.client.fluent with parameters of type Credentials Modifier and Type Method Description Executor
Executor. auth(java.lang.String host, Credentials creds)
Executor
Executor. auth(AuthScope authScope, Credentials creds)
Executor
Executor. auth(Credentials cred)
Executor
Executor. auth(org.apache.http.HttpHost host, Credentials creds)
-
Uses of Credentials in org.apache.http.client.protocol
Methods in org.apache.http.client.protocol with parameters of type Credentials Modifier and Type Method Description private org.apache.http.Header
RequestAuthenticationBase. authenticate(AuthScheme authScheme, Credentials creds, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
Deprecated. -
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 Description org.apache.http.Header
AuthSchemeBase. authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
static org.apache.http.Header
BasicScheme. authenticate(Credentials credentials, java.lang.String charset, boolean proxy)
Deprecated.org.apache.http.Header
BasicScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request)
org.apache.http.Header
BasicScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
Produces basic authorization header for the given set ofCredentials
.org.apache.http.Header
DigestScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request)
org.apache.http.Header
DigestScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
Produces a digest authorization string for the given set ofCredentials
, method name and URI.org.apache.http.Header
GGSSchemeBase. authenticate(Credentials credentials, org.apache.http.HttpRequest request)
org.apache.http.Header
GGSSchemeBase. authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
org.apache.http.Header
KerberosScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
Produces KERBEROS authorization Header based on token created by processChallenge.org.apache.http.Header
NegotiateScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request)
Deprecated.org.apache.http.Header
NegotiateScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
Deprecated.Produces Negotiate authorization Header based on token created by processChallenge.org.apache.http.Header
NTLMScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request)
org.apache.http.Header
SPNegoScheme. authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
Produces SPNEGO authorization Header based on token created by processChallenge.private org.apache.http.Header
DigestScheme. createDigestHeader(Credentials credentials, org.apache.http.HttpRequest request)
Creates digest-response header as defined in RFC2617.private org.apache.http.Header
HttpAuthenticator. doAuth(AuthScheme authScheme, Credentials creds, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
protected byte[]
GGSSchemeBase. generateGSSToken(byte[] input, org.ietf.jgss.Oid oid, java.lang.String authServer, Credentials credentials)
protected byte[]
GGSSchemeBase. generateToken(byte[] input, java.lang.String authServer, Credentials credentials)
protected byte[]
KerberosScheme. generateToken(byte[] input, java.lang.String authServer, Credentials credentials)
protected byte[]
NegotiateScheme. generateToken(byte[] input, java.lang.String authServer, Credentials credentials)
Deprecated.protected byte[]
SPNegoScheme. generateToken(byte[] input, java.lang.String authServer, Credentials credentials)
-
Uses of Credentials in org.apache.http.impl.client
Fields in org.apache.http.impl.client with type parameters of type Credentials Modifier and Type Field Description private java.util.concurrent.ConcurrentHashMap<AuthScope,Credentials>
BasicCredentialsProvider. credMap
Methods in org.apache.http.impl.client that return Credentials Modifier and Type Method Description Credentials
BasicCredentialsProvider. getCredentials(AuthScope authscope)
Credentials
SystemDefaultCredentialsProvider. getCredentials(AuthScope authscope)
private static Credentials
BasicCredentialsProvider. matchCredentials(java.util.Map<AuthScope,Credentials> map, AuthScope authscope)
Find matchingcredentials
for the given authentication scope.Methods in org.apache.http.impl.client with parameters of type Credentials Modifier and Type Method Description void
BasicCredentialsProvider. setCredentials(AuthScope authscope, Credentials credentials)
void
SystemDefaultCredentialsProvider. setCredentials(AuthScope authscope, Credentials credentials)
java.net.Socket
ProxyClient. tunnel(org.apache.http.HttpHost proxy, org.apache.http.HttpHost target, Credentials credentials)
Method parameters in org.apache.http.impl.client with type arguments of type Credentials Modifier and Type Method Description private static Credentials
BasicCredentialsProvider. matchCredentials(java.util.Map<AuthScope,Credentials> map, AuthScope authscope)
Find matchingcredentials
for the given authentication scope.
-