K - The type of the keys.@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
public interface KeyManager<K>
Implementations must be safe for multi-threading.
| Modifier and Type | Method and Description |
|---|---|
KeyProvider<K> |
getKeyProvider(java.net.URI resource)
Returns the key provider for the given protected resource.
|
KeyProvider<K> |
moveKeyProvider(java.net.URI oldResource,
java.net.URI newResource)
Moves the key provider from the URI
oldResource to
newResource. |
KeyProvider<K> |
removeKeyProvider(java.net.URI resource)
Removes the key provider for the given protected resource.
|
KeyProvider<K> getKeyProvider(java.net.URI resource)
resource - the URI of the protected resource.@Nullable KeyProvider<K> moveKeyProvider(java.net.URI oldResource, java.net.URI newResource)
oldResource to
newResource.oldResource - the old URI of the protected resource.newResource - the new URI of the protected resource.newResource.java.lang.IllegalArgumentException - if no key provider exists for
oldResource or if oldResource compares
equal to newResource.@Nullable KeyProvider<K> removeKeyProvider(java.net.URI resource)
resource - the URI of the protected resource.java.lang.IllegalArgumentException - if no key provider exists for
resource.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.