|
TrueZIP Driver ZIP.RAES (TZP) 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.key.SafeKeyManager<K,PromptingKeyProvider<K>>
de.schlichtherle.truezip.key.PromptingKeyManager<K>
K - The type of the keys.@ThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class PromptingKeyManager<K extends SafeKey<K>>
A key manager which prompts the user for a key if required.
PromptingKeyProvider| Field Summary | |
|---|---|
private PromptingKeyProvider.View<K> |
view
|
| Constructor Summary | |
|---|---|
PromptingKeyManager(PromptingKeyProvider.View<K> view)
Constructs a new prompting key manager. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final PromptingKeyProvider.View<K extends SafeKey<K>> view
| Constructor Detail |
|---|
public PromptingKeyManager(PromptingKeyProvider.View<K> view)
view - the view instance for prompting for keys.| Method Detail |
|---|
public PromptingKeyProvider<K> getKeyProvider(URI resource)
KeyManager
getKeyProvider 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)
KeyManager
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.
|
TrueZIP Driver ZIP.RAES (TZP) 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||