Package net.oauth
Class OAuthConsumer
- java.lang.Object
-
- net.oauth.OAuthConsumer
-
- All Implemented Interfaces:
Serializable
public class OAuthConsumer extends Object implements Serializable
Properties of an OAuth Consumer. Properties may be added freely, e.g. to support extensions.- Author:
- John Kristian
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACCEPT_ENCODING
The name of the property whose value is the Accept-Encoding header in HTTP requests.static String
ACCESSOR_SECRET
The name of the property whose value is the Accessor Secret.String
callbackURL
String
consumerKey
String
consumerSecret
OAuthServiceProvider
serviceProvider
-
Constructor Summary
Constructors Constructor Description OAuthConsumer(String callbackURL, String consumerKey, String consumerSecret, OAuthServiceProvider serviceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getProperty(String name)
void
setProperty(String name, Object value)
-
-
-
Field Detail
-
ACCEPT_ENCODING
public static final String ACCEPT_ENCODING
The name of the property whose value is the Accept-Encoding header in HTTP requests.- See Also:
- Constant Field Values
-
ACCESSOR_SECRET
public static final String ACCESSOR_SECRET
The name of the property whose value is the Accessor Secret.- See Also:
- Constant Field Values
-
callbackURL
public final String callbackURL
-
consumerKey
public final String consumerKey
-
consumerSecret
public final String consumerSecret
-
serviceProvider
public final OAuthServiceProvider serviceProvider
-
-
Constructor Detail
-
OAuthConsumer
public OAuthConsumer(String callbackURL, String consumerKey, String consumerSecret, OAuthServiceProvider serviceProvider)
-
-