com.dyuproject.oauth.sp
Class ConcurrentMapHashStore
java.lang.Object
com.dyuproject.oauth.sp.HashStore
com.dyuproject.oauth.sp.ConcurrentMapHashStore
- All Implemented Interfaces:
- ServiceToken.Store
public final class ConcurrentMapHashStore
- extends HashStore
ConcurrentHashMap - in-memory consumer keys
- Author:
- David Yu
- Date created:
- Jun 8, 2009
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcurrentMapHashStore
public ConcurrentMapHashStore(String secretKey,
String macSecretKey)
ConcurrentMapHashStore
public ConcurrentMapHashStore(String secretKey,
String macSecretKey,
String macAlgorithm,
long accessTimeout,
long exchangeTimeout,
long loginTimeout)
getConsumerSecret
protected String getConsumerSecret(String consumerKey)
- Specified by:
getConsumerSecret
in class HashStore
addConsumer
public ConcurrentMapHashStore addConsumer(String consumerKey,
String consumerSecret)
- Adds a consumer entry (consumerKey and consumerSecret);
If there is an existing consumerKey, it will not be added.
Copyright © 2008-2013. All Rights Reserved.