Packages

c

org.codefeedr.keymanager

StaticKeyManager

class StaticKeyManager extends KeyManager with Serializable

Key manager implementation with a static set of keys. Does not allow for more than one key per target, nor does it keep track of the number of uses.

Linear Supertypes
Serializable, Serializable, KeyManager, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StaticKeyManager
  2. Serializable
  3. Serializable
  4. KeyManager
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StaticKeyManager(map: Map[String, String] = Map())

    map

    Map of target -> key.

Value Members

  1. def request(target: String, numberOfCalls: Int): Option[ManagedKey]

    Requests a key from memory.

    Requests a key from memory.

    target

    Target of the key.

    numberOfCalls

    The number of calls needed on this key.

    returns

    A managed key.

    Definition Classes
    StaticKeyManagerKeyManager
  2. def request(target: String): Option[ManagedKey]

    Request single-use key for given target.

    Request single-use key for given target.

    target

    Target of the key.

    returns

    A managed key.

    Definition Classes
    KeyManager