class OAuthScheme
extends org.apache.http.impl.auth.RFC2617Scheme
| Modifier and Type | Field and Description |
|---|---|
private boolean |
complete
Whether the authentication process is complete (for the current context)
|
private String |
defaultRealm |
| Constructor and Description |
|---|
OAuthScheme(String defaultRealm) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.Header |
authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request) |
private net.oauth.OAuthAccessor |
getAccessor(org.apache.http.auth.Credentials credentials) |
private org.apache.http.client.methods.HttpUriRequest |
getHttpUriRequest(org.apache.http.HttpRequest request) |
String |
getRealm() |
String |
getSchemeName() |
boolean |
isComplete() |
boolean |
isConnectionBased() |
void |
processChallenge(org.apache.http.Header challenge)
Handle a challenge from an OAuth server.
|
private final String defaultRealm
private boolean complete
OAuthScheme(String defaultRealm)
public String getRealm()
getRealm in interface org.apache.http.auth.AuthSchemegetRealm in class org.apache.http.impl.auth.RFC2617Schemepublic String getSchemeName()
public boolean isComplete()
public boolean isConnectionBased()
public void processChallenge(org.apache.http.Header challenge)
throws org.apache.http.auth.MalformedChallengeException
processChallenge in interface org.apache.http.auth.AuthSchemeprocessChallenge in class org.apache.http.impl.auth.AuthSchemeBaseorg.apache.http.auth.MalformedChallengeExceptionpublic org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request)
throws org.apache.http.auth.AuthenticationException
org.apache.http.auth.AuthenticationExceptionprivate org.apache.http.client.methods.HttpUriRequest getHttpUriRequest(org.apache.http.HttpRequest request)
private net.oauth.OAuthAccessor getAccessor(org.apache.http.auth.Credentials credentials)
Copyright © 2016. All rights reserved.