public abstract class AbstractOAuthCredentialMapper extends Object implements DynamicOAuthCredentialMapper, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONSUMER_CREDENTIAL |
protected static String |
TOKEN_CREDENTIAL |
| Constructor and Description |
|---|
AbstractOAuthCredentialMapper() |
| Modifier and Type | Method and Description |
|---|---|
AccessCredential |
getAccesssCredential(AccessIdentity accessIdentity)
Returns a pair of consumer secret and token secret for the given consumer key/access token.
|
String |
getConsumerSecret(String consumerKey)
Returns a consumer secret for the given consumerKey.
|
String |
getTokenSecret(String accessToken)
Returns a token secret for the givne accessToken.
|
protected void |
init() |
AccessCredential |
putAccesssCredential(AccessIdentity accessIdentity,
AccessCredential accessCredential) |
String |
putConsumerSecret(String consumerKey,
String consumerSecret) |
String |
putTokenSecret(String accessToken,
String tokenSecret) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitputCredentialSecretgetCredentialSecretprotected static final String CONSUMER_CREDENTIAL
protected static final String TOKEN_CREDENTIAL
protected void init()
public String getConsumerSecret(String consumerKey) throws CredentialStoreException
OAuthCredentialMappergetConsumerSecret in interface OAuthCredentialMapperCredentialStoreException - TODOpublic String putConsumerSecret(String consumerKey, String consumerSecret) throws CredentialStoreException
putConsumerSecret in interface DynamicOAuthCredentialMapperCredentialStoreExceptionpublic String getTokenSecret(String accessToken) throws CredentialStoreException
OAuthCredentialMappergetTokenSecret in interface OAuthCredentialMapperCredentialStoreException - TODOpublic String putTokenSecret(String accessToken, String tokenSecret) throws CredentialStoreException
putTokenSecret in interface DynamicOAuthCredentialMapperCredentialStoreExceptionpublic AccessCredential getAccesssCredential(AccessIdentity accessIdentity) throws CredentialStoreException
OAuthCredentialMappergetAccesssCredential in interface OAuthCredentialMapperCredentialStoreException - TODOpublic AccessCredential putAccesssCredential(AccessIdentity accessIdentity, AccessCredential accessCredential) throws CredentialStoreException
putAccesssCredential in interface DynamicOAuthCredentialMapperCredentialStoreExceptionCopyright © 2013. All rights reserved.