public class OAuthSingleConsumerCredentialMapper extends AbstractOAuthCredentialMapper implements DynamicOAuthConsumerCredentialMapper
CONSUMER_CREDENTIAL, TOKEN_CREDENTIAL| Constructor and Description |
|---|
OAuthSingleConsumerCredentialMapper() |
OAuthSingleConsumerCredentialMapper(String consumerKey,
String consumerSecret) |
| Modifier and Type | Method and Description |
|---|---|
AccessIdentity |
getAccessIdentity() |
AccessCredential |
getAccesssCredential() |
AccessCredential |
getAccesssCredential(String consumerKey) |
ConsumerCredential |
getConsumerCredential() |
String |
getConsumerKey() |
String |
getConsumerSecret() |
String |
getCredentialSecret(String credentialType,
String credentialKey) |
String |
getTokenSecret(String accessToken)
Returns a token secret for the givne accessToken.
|
protected void |
init() |
AccessCredential |
putAccesssCredential(String accessToken,
String tokenSecret) |
String |
putConsumerSecret(String consumerKey,
String consumerSecret) |
void |
putConsumerSecrets(Map<String,String> consumerCredentials) |
String |
putCredentialSecret(String credentialType,
String credentialKey,
String credentialSecret) |
String |
putTokenSecret(String accessToken,
String tokenSecret) |
OAuthSingleConsumerCredentialMapper |
setConsumerKey(String consumerKey) |
getAccesssCredential, getConsumerSecret, putAccesssCredentialclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitputAccesssCredentialgetAccesssCredential, getConsumerSecretprotected void init()
init in class AbstractOAuthCredentialMapperpublic String getConsumerKey()
public OAuthSingleConsumerCredentialMapper setConsumerKey(String consumerKey)
public String getConsumerSecret()
public String putConsumerSecret(String consumerKey, String consumerSecret) throws CredentialStoreException
putConsumerSecret in interface DynamicOAuthCredentialMapperputConsumerSecret in class AbstractOAuthCredentialMapperCredentialStoreExceptionpublic void putConsumerSecrets(Map<String,String> consumerCredentials) throws CredentialStoreException
putConsumerSecrets in interface DynamicOAuthConsumerCredentialMapperCredentialStoreExceptionpublic ConsumerCredential getConsumerCredential()
public String getCredentialSecret(String credentialType, String credentialKey) throws CredentialStoreException
getCredentialSecret in interface CredentialMapperCredentialStoreExceptionpublic String putCredentialSecret(String credentialType, String credentialKey, String credentialSecret) throws CredentialStoreException
putCredentialSecret in interface DynamicCredentialMapperCredentialStoreExceptionpublic String getTokenSecret(String accessToken) throws CredentialStoreException
OAuthCredentialMappergetTokenSecret in interface OAuthCredentialMappergetTokenSecret in class AbstractOAuthCredentialMapperCredentialStoreException - TODOpublic String putTokenSecret(String accessToken, String tokenSecret) throws CredentialStoreException
putTokenSecret in interface DynamicOAuthCredentialMapperputTokenSecret in class AbstractOAuthCredentialMapperCredentialStoreExceptionpublic AccessIdentity getAccessIdentity() throws CredentialStoreException
CredentialStoreExceptionpublic AccessCredential getAccesssCredential() throws CredentialStoreException
CredentialStoreExceptionpublic AccessCredential getAccesssCredential(String consumerKey) throws CredentialStoreException
getAccesssCredential in interface OAuthConsumerCredentialMapperCredentialStoreExceptionpublic AccessCredential putAccesssCredential(String accessToken, String tokenSecret) throws CredentialStoreException
putAccesssCredential in interface DynamicOAuthConsumerCredentialMapperCredentialStoreExceptionCopyright © 2013. All rights reserved.