public class OAuthConfig extends Object
Constructor and Description |
---|
OAuthConfig(String key,
String secret) |
OAuthConfig(String key,
String secret,
String callback,
SignatureType type,
String scope,
OutputStream stream,
Integer connectTimeout,
Integer readTimeout,
String grantType) |
Modifier and Type | Method and Description |
---|---|
String |
getApiKey() |
String |
getApiSecret() |
String |
getCallback() |
Integer |
getConnectTimeout() |
String |
getGrantType() |
Integer |
getReadTimeout() |
String |
getScope() |
SignatureType |
getSignatureType() |
String |
getState() |
boolean |
hasGrantType() |
boolean |
hasScope() |
void |
log(String message) |
void |
setState(String state)
Sets optional value used by some provider implementations that is exchanged with provider to avoid CSRF attacks.
|
public OAuthConfig(String key, String secret, String callback, SignatureType type, String scope, OutputStream stream, Integer connectTimeout, Integer readTimeout, String grantType)
public String getApiKey()
public String getApiSecret()
public String getCallback()
public SignatureType getSignatureType()
public String getScope()
public boolean hasScope()
public String getGrantType()
public boolean hasGrantType()
public Integer getConnectTimeout()
public Integer getReadTimeout()
public void log(String message)
public void setState(String state)
state
- some secret key that client side shall never receivepublic String getState()
Copyright © 2016. All rights reserved.