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 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 using
      key - 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. This method also sets the given key as cipher key for OAuth stores.
      Parameters:
      store - an implementation of FriendStore for delegation using
      key - the encryption key
      Returns:
      a SecuredFriendStore