Package net.oauth.client.httpclient4
Class OAuthSchemeFactory
- java.lang.Object
-
- net.oauth.client.httpclient4.OAuthSchemeFactory
-
- All Implemented Interfaces:
org.apache.http.auth.AuthSchemeFactory
public class OAuthSchemeFactory extends Object implements org.apache.http.auth.AuthSchemeFactory
An implementation of the OAuth HTTP authorization scheme. This is somewhat limited: it can only sign a request URL by adding an Authorization header. It can't change the request URL query string, it can't handle OAuth parameters in the URL query and it can't sign parameters from the request body.- Author:
- Paul Austin, John Kristian
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_REALM
The name of an DigestHttpClient param whose value is the realm to send in Authorization headers, if no realm was previously received in a WWW-Authenticate challenge.static String
SCHEME_NAME
The name of this authorization scheme.
-
Constructor Summary
Constructors Constructor Description OAuthSchemeFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.auth.AuthScheme
newInstance(org.apache.http.params.HttpParams params)
-
-
-
Field Detail
-
DEFAULT_REALM
public static final String DEFAULT_REALM
The name of an DigestHttpClient param whose value is the realm to send in Authorization headers, if no realm was previously received in a WWW-Authenticate challenge. This is useful for preemptive authorization; that is sending an Authorization header without any need for a challenge.- See Also:
- Constant Field Values
-
SCHEME_NAME
public static final String SCHEME_NAME
The name of this authorization scheme.- See Also:
- Constant Field Values
-
-