@Immutable public abstract class AbstractKeyManagerMap extends UniqueObject implements KeyManagerMap, Container<Map<Class<?>,KeyManager<?>>>
Implementations must be safe for multi-threading.
Constructor and Description |
---|
AbstractKeyManagerMap() |
Modifier and Type | Method and Description |
---|---|
abstract Map<Class<?>,KeyManager<?>> |
get()
Returns an immutable map of key classes to nullable key managers.
|
<K> KeyManager<K> |
manager(Class<K> type)
Returns the key manager for the given secret key class.
|
String |
toString()
Returns a string representation of this object for logging and debugging
purposes.
|
equals, hashCode
public abstract Map<Class<?>,KeyManager<?>> get()
null
.
This is an immutable property - multiple calls must return the same object.
get
in interface javax.inject.Provider<Map<Class<?>,KeyManager<?>>>
get
in interface Container<Map<Class<?>,KeyManager<?>>>
@CheckForNull public final <K> KeyManager<K> manager(Class<K> type)
KeyManagerMap
This is a pure function - multiple calls must return the same value for the same parameter.
manager
in interface KeyManagerMap
K
- the type of the keys.type
- the class for the key type.Copyright © 2012–2015 Schlichtherle IT Services. All rights reserved.