public abstract class MapBackedKeyManager extends AbstractKeyManager
KeyManager implementations that store all secret keys in an in-memory Map.KeyManager.DigestId| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,KeyIdentifier> |
allKeys |
currentKey, keyAlgo, keyExpirationPeriod, keyGenerator, keyLength, threadLocalMac| Constructor and Description |
|---|
MapBackedKeyManager(CConfiguration cConf) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addKey(KeyIdentifier key)
Adds a given key instance.
|
protected KeyIdentifier |
getKey(int id)
Returns the key instance matching a given unique ID.
|
protected boolean |
hasKey(int id)
Returns whether or not a key exists for the given unique ID.
|
doInit, generateKey, generateMAC, generateMAC, generateMAC, startUp, validateMACaddListener, executor, isRunning, shutDown, start, startAndWait, state, stop, stopAndWait, toStringprotected final Map<Integer,KeyIdentifier> allKeys
public MapBackedKeyManager(CConfiguration cConf)
protected boolean hasKey(int id)
AbstractKeyManagerhasKey in class AbstractKeyManagerprotected KeyIdentifier getKey(int id)
AbstractKeyManagergetKey in class AbstractKeyManagerprotected void addKey(KeyIdentifier key)
AbstractKeyManageraddKey in class AbstractKeyManagerCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.