package keymanager
Type Members
-
trait
KeyManager extends AnyRef
A key manager handles the retrieval of API keys for use with, e.g.
A key manager handles the retrieval of API keys for use with, e.g. web APIs.
The key manager has multiple targets, each with a set of keys. A key can have a limited amount of calls it can be used for. The key manager handles refreshing of those number of calls.
-
case class
ManagedKey(value: String, remainingCalls: Int) extends Product with Serializable
A key managed by a key manager.
A key managed by a key manager.
- value
The (API) key.
- remainingCalls
Number of calls remaining after using the ones requested. Can be 0.
-
class
StaticKeyManager extends KeyManager with Serializable
Key manager implementation with a static set of keys.
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.