K - the type of the safe keys.P - the type of the safe key providers.@ThreadSafe public abstract class SafeKeyManager<K extends SafeKey<K>,P extends SafeKeyProvider<K>> extends KeyManager<K>
| Modifier | Constructor and Description |
|---|---|
protected |
SafeKeyManager()
Constructs a new safe key manager.
|
| Modifier and Type | Method and Description |
|---|---|
P |
delete(URI resource)
Deletes the mapped key provider for the given protected resource.
|
P |
get(URI resource)
Returns the mapped key provider for the given protected resource or
null if no key provider is mapped yet. |
P |
make(URI resource)
Returns the mapped key provider for the given protected resource.
|
P |
move(URI oldResource,
URI newResource)
Moves the mapped key provider from the URI
oldResource to
newResource. |
protected abstract P |
newKeyProvider()
Returns a new key provider.
|
toString, unlock@CheckForNull public P delete(URI resource)
The returned key provider is invalidated and will behave as if prompting for the secret key had been disabled or cancelled by the user.
delete in class KeyManager<K extends SafeKey<K>>resource - the URI of the protected resource.@CheckForNull public P get(URI resource)
KeyManagernull if no key provider is mapped yet.get in class KeyManager<K extends SafeKey<K>>resource - the URI of the protected resource.null if no key provider is mapped yet.public P make(URI resource)
KeyManagermake in class KeyManager<K extends SafeKey<K>>resource - the URI of the protected resource.@CheckForNull public P move(URI oldResource, URI newResource)
KeyManageroldResource to
newResource.move in class KeyManager<K extends SafeKey<K>>oldResource - the old URI of the protected resource.newResource - the new URI of the protected resource.newResource.protected abstract P newKeyProvider()
Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.