public abstract class BaseConnectionCallback extends Object implements ConnectionCallback
ConnectionCallback
Modifier and Type | Field and Description |
---|---|
static String |
CDATA_ACCESS_TOKEN_PROP |
static String |
CDATA_EXP_PROP |
static String |
CDATA_REFRESH_TOKEN_PROP |
static String |
CDATA_TIMESTAMP_PROP |
static String |
CONNECTION_CALLBACK_PROP |
static String |
INITIATE_OAUTH_PROP |
static String |
OAUTH_ACCESS_TOKEN_PROP |
static String |
OAUTH_AUTH_CODE_PROP |
static String |
OAUTH_CALLBACK_URL_PROP |
static String |
OAUTH_CLIENT_ID_PROP |
static String |
OAUTH_CLIENT_SECRET_PROP |
static String |
OAUTH_EXPIRES_IN_PROP |
static String |
OAUTH_REFRESH_TOKEN_PROP |
static String |
OAUTH_SCOPE_PROP |
static String |
OAUTH_SETTINGS_LOCATION_PROP |
Constructor and Description |
---|
BaseConnectionCallback() |
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken(String url,
String payload,
String accessTokenAttr,
String contentType)
Gets the access token.
|
String |
getConfigFileName(String name)
Gets the config file name.
|
void |
save(String fileName,
Properties props)
Save configuration.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
after, before
public static final String OAUTH_REFRESH_TOKEN_PROP
public static final String OAUTH_ACCESS_TOKEN_PROP
public static final String OAUTH_CLIENT_ID_PROP
public static final String OAUTH_CLIENT_SECRET_PROP
public static final String OAUTH_SCOPE_PROP
public static final String OAUTH_CALLBACK_URL_PROP
public static final String OAUTH_AUTH_CODE_PROP
public static final String INITIATE_OAUTH_PROP
public static final String OAUTH_SETTINGS_LOCATION_PROP
public static final String CONNECTION_CALLBACK_PROP
public static final String OAUTH_EXPIRES_IN_PROP
public static final String CDATA_REFRESH_TOKEN_PROP
public static final String CDATA_EXP_PROP
public static final String CDATA_TIMESTAMP_PROP
public static final String CDATA_ACCESS_TOKEN_PROP
public String getConfigFileName(String name)
name
- the namepublic void save(String fileName, Properties props) throws Exception
fileName
- the file nameprops
- the configurationException
- the exceptionpublic String getAccessToken(String url, String payload, String accessTokenAttr, String contentType) throws Exception
url
- the urlpayload
- the payloadaccessTokenAttr
- the access token attrException
- the exceptionCopyright © 2010-2020 Toolsverse. All Rights Reserved.