public class OAuthConfiguration extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
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 storeConsumerStoreException
- 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.0aCopyright © 2018. All Rights Reserved.