|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.lyo.server.oauth.core.OAuthConfiguration
public class OAuthConfiguration
Manages the OAuth provider configuration, including the validator, consumer store, and token strategy.
Method Summary | |
---|---|
Application |
getApplication()
|
ConsumerStore |
getConsumerStore()
Gets the store used for managing consumers. |
static OAuthConfiguration |
getInstance()
|
TokenStrategy |
getTokenStrategy()
Gets the strategy used to generate and verify OAuth tokens. |
net.oauth.OAuthValidator |
getValidator()
Gets the OAuth validator for validating request signatures. |
boolean |
isV1_0Allowed()
Is OAuth version 1.0 allowed, or do we require 1.0a? |
void |
setApplication(Application application)
|
void |
setConsumerStore(ConsumerStore consumerStore)
Sets the store used for managing consumers. |
void |
setTokenStrategy(TokenStrategy tokenStrategy)
Sets the strategy used to generate and verify OAuth tokens. |
void |
setV1_0Allowed(boolean allowed)
Sets if we allow OAuth 1.0. |
void |
setValidator(net.oauth.OAuthValidator validator)
Sets the OAuth validator for validating request signatures. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OAuthConfiguration getInstance()
public net.oauth.OAuthValidator getValidator()
public void setValidator(net.oauth.OAuthValidator validator)
validator
- the validatorpublic TokenStrategy getTokenStrategy()
public void setTokenStrategy(TokenStrategy tokenStrategy)
tokenStrategy
- the strategypublic ConsumerStore getConsumerStore()
public void setConsumerStore(ConsumerStore consumerStore) throws ConsumerStoreException
consumerStore
- the consumer store
ConsumerStoreException
- on errors initializing the consumer registrypublic Application getApplication() throws net.oauth.OAuthProblemException
net.oauth.OAuthProblemException
public void setApplication(Application application)
public boolean isV1_0Allowed()
public void setV1_0Allowed(boolean allowed)
allowed
- true to allow OAuth version 1.0 requests or false to require
OAuth version 1.0a
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |