K - The type of the secret keys.@ThreadSafe public interface KeyManager<K>
Implementations must be safe for multi-threading.
| Modifier and Type | Method and Description |
|---|---|
KeyProvider<K> |
getKeyProvider(URI resource)
Returns the mapped key provider for the given protected resource.
|
int |
getPriority()
Returns a priority to help the key manager service locator.
|
KeyProvider<K> |
moveKeyProvider(URI oldResource,
URI newResource)
Moves the mapped key provider from the URI
oldResource to
newResource. |
KeyProvider<K> |
removeKeyProvider(URI resource)
Removes the mapped key provider for the given protected resource.
|
KeyProvider<K> getKeyProvider(URI resource)
resource - the URI of the protected resource.int getPriority()
0.@Nullable KeyProvider<K> moveKeyProvider(URI oldResource, URI newResource)
oldResource to
newResource.oldResource - the old URI of the protected resource.newResource - the new URI of the protected resource.newResource.IllegalArgumentException - if oldResource compares
equal to newResource.@CheckForNull KeyProvider<K> removeKeyProvider(URI resource)
resource - the URI of the protected resource.Copyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.