K - The type of the keys.@ThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class PromptingKeyManager<K extends SafeKey<K>> extends SafeKeyManager<K,PromptingKeyProvider<K>>
PromptingKeyProvider| Modifier and Type | Field and Description |
|---|---|
private PromptingKeyProvider.View<K> |
view |
| Constructor and Description |
|---|
PromptingKeyManager(PromptingKeyProvider.View<K> view)
Constructs a new prompting key manager.
|
| Modifier and Type | Method and Description |
|---|---|
PromptingKeyProvider<K> |
getKeyProvider(URI resource)
Returns the key provider for the given protected resource.
|
PromptingKeyProvider<K> |
moveKeyProvider(URI oldResource,
URI newResource)
Moves the key provider from the URI
oldResource to
newResource. |
PromptingKeyProvider<K> |
removeKeyProvider(URI resource)
Removes the key provider for the given protected resource.
|
private final PromptingKeyProvider.View<K extends SafeKey<K>> view
public PromptingKeyManager(PromptingKeyProvider.View<K> view)
view - the view instance for prompting for keys.public PromptingKeyProvider<K> getKeyProvider(URI resource)
KeyManagergetKeyProvider in interface KeyManager<K extends SafeKey<K>>getKeyProvider in class SafeKeyManager<K extends SafeKey<K>,PromptingKeyProvider<K extends SafeKey<K>>>resource - the URI of the protected resource.public PromptingKeyProvider<K> moveKeyProvider(URI oldResource, URI newResource)
KeyManageroldResource to
newResource.moveKeyProvider in interface KeyManager<K extends SafeKey<K>>moveKeyProvider in class SafeKeyManager<K extends SafeKey<K>,PromptingKeyProvider<K extends SafeKey<K>>>oldResource - the old URI of the protected resource.newResource - the new URI of the protected resource.newResource.public PromptingKeyProvider<K> removeKeyProvider(URI resource)
KeyManagerremoveKeyProvider in interface KeyManager<K extends SafeKey<K>>removeKeyProvider in class SafeKeyManager<K extends SafeKey<K>,PromptingKeyProvider<K extends SafeKey<K>>>resource - the URI of the protected resource.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.