|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.oauth.OAuthConsumer
org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer
public class LyoOAuthConsumer
An OAuth consumer with extra properties, including a name and a trusted flag.
| Nested Class Summary | |
|---|---|
static class |
LyoOAuthConsumer.OAuthVersion
|
| Field Summary |
|---|
| Fields inherited from class net.oauth.OAuthConsumer |
|---|
ACCEPT_ENCODING, ACCESSOR_SECRET, callbackURL, consumerKey, consumerSecret, serviceProvider |
| Constructor Summary | |
|---|---|
LyoOAuthConsumer(String consumerKey,
String consumerSecret)
|
|
LyoOAuthConsumer(String callbackURL,
String consumerKey,
String consumerSecret)
|
|
LyoOAuthConsumer(String callbackURL,
String consumerKey,
String consumerSecret,
net.oauth.OAuthServiceProvider serviceProvider)
|
|
| Method Summary | |
|---|---|
String |
getKey()
|
String |
getName()
Gets the name of the consumer, which might be shown in the login dialog and other user interfaces. |
LyoOAuthConsumer.OAuthVersion |
getOAuthVersion()
Gets the OAuth version that the consumer supports. |
boolean |
isProvisional()
|
boolean |
isTrusted()
Answers if this consumer is trusted. |
void |
setName(String name)
Sets the name of the consumer, which might be shown in the login dialog and other user interfaces. |
void |
setOAuthVersion(LyoOAuthConsumer.OAuthVersion oAuthVersion)
Sets the OAuth version that the consumer supports. |
void |
setProvisional(boolean provisional)
|
void |
setTrusted(boolean trusted)
Sets if this consumer is trusted. |
| Methods inherited from class net.oauth.OAuthConsumer |
|---|
getProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LyoOAuthConsumer(String consumerKey,
String consumerSecret)
public LyoOAuthConsumer(String callbackURL,
String consumerKey,
String consumerSecret)
public LyoOAuthConsumer(String callbackURL,
String consumerKey,
String consumerSecret,
net.oauth.OAuthServiceProvider serviceProvider)
| Method Detail |
|---|
public String getKey()
public String getName()
public void setName(String name)
name - the namepublic boolean isProvisional()
public void setProvisional(boolean provisional)
public boolean isTrusted()
public void setTrusted(boolean trusted)
trusted - true if the consumer is trusted, false otherwisepublic LyoOAuthConsumer.OAuthVersion getOAuthVersion()
public void setOAuthVersion(LyoOAuthConsumer.OAuthVersion oAuthVersion)
oAuthVersion - the OAuth version
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||