Package com.sodius.oslc.server.oauth
Class Stores
- java.lang.Object
-
- com.sodius.oslc.server.oauth.Stores
-
public class Stores extends Object
Provide Secured Store for Consumer or Friend. Those stores encrypt/decipher the consumer secret of Consumer and Friend.- Since:
- 1.11.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FriendStore
secure(FriendStore store, String key)
Returns a FriendStore which ciphers/deciphers the consumer secret of its Friendsstatic org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore
secure(org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore store, String key)
Returns a ConsumerStore which ciphers/deciphers the consumer secret of its Consumers.
-
-
-
Method Detail
-
secure
public static org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore secure(org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore store, String key)
Returns a ConsumerStore which ciphers/deciphers the consumer secret of its Consumers.- Parameters:
store
- an implementation of ConsumerStore for delegation usingkey
- the encryption key- Returns:
- a SecuredConsumerStore
-
secure
public static FriendStore secure(FriendStore store, String key)
Returns a FriendStore which ciphers/deciphers the consumer secret of its Friends- Parameters:
store
- an implementation of FriendStore for delegation usingkey
- the encryption key- Returns:
- a SecuredFriendStore
-
-