Package com.sodius.oslc.server.oauth
Class Stores
java.lang.Object
com.sodius.oslc.server.oauth.Stores
Provide Secured Store for Consumer or Friend.
Those stores encrypt/decipher the consumer secret of Consumer and Friend.
- Since:
- 1.11.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic FriendStoresecure(FriendStore store, String key) Returns a FriendStore which ciphers/deciphers the consumer secret of its Friends.static org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreReturns a ConsumerStore which ciphers/deciphers the consumer secret of its Consumers.
-
Method Details
-
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
Returns a FriendStore which ciphers/deciphers the consumer secret of its Friends. This method also sets the given key ascipher keyforOAuth stores.- Parameters:
store- an implementation of FriendStore for delegation usingkey- the encryption key- Returns:
- a SecuredFriendStore
-