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.
|
(package private) PromptingKeyProvider.View<K> |
getView() |
PromptingKeyProvider<K> |
moveKeyProvider(URI oldResource,
URI newResource)
Moves the key provider from the URI
oldResource to
newResource. |
protected PromptingKeyProvider<K> |
newKeyProvider()
Returns a new prompting key provider.
|
PromptingKeyProvider<K> |
removeKeyProvider(URI resource)
Removes the key provider for the given protected resource.
|
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
getPriorityprivate final PromptingKeyProvider.View<K extends SafeKey<K>> view
public PromptingKeyManager(PromptingKeyProvider.View<K> view)
view - the view instance for prompting for keys.final PromptingKeyProvider.View<K> getView()
protected PromptingKeyProvider<K> newKeyProvider()
newKeyProvider in class SafeKeyManager<K extends SafeKey<K>,PromptingKeyProvider<K extends SafeKey<K>>>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)
SafeKeyManagerThe returned key provider is invalidated and will behave as if prompting for the secret key had been disabled or cancelled by the user.
removeKeyProvider 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.public String toString()
toString in class SafeKeyManager<K extends SafeKey<K>,PromptingKeyProvider<K extends SafeKey<K>>>Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.