|
TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1 | ||||||||
| 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| Nested Class Summary | |
|---|---|
private static class |
PromptingKeyManager.PromptingKeyProviderFactory<K extends SafeKey<K>>
A factory for PromptingKeyProviders. |
| Field Summary | |
|---|---|
private PromptingKeyProvider.UI<? extends K> |
ui
The user interface classes or instances. |
| Constructor Summary | |
|---|---|
PromptingKeyManager(PromptingKeyProvider.UI<? extends K> ui)
Constructs a new prompting key manager. |
|
| Method Summary | |
|---|---|
PromptingKeyProvider<K> |
getKeyProvider(URI resource)
Returns the key provider for the given protected resource. |
boolean |
moveKeyProvider(URI oldResource,
URI newResource)
Moves the key provider from the URI oldResource to
newResource. |
boolean |
removeKeyProvider(URI resource)
Removes the key provider for the given protected resource. |
| Methods inherited from class de.schlichtherle.truezip.key.SafeKeyManager |
|---|
findKeyProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final PromptingKeyProvider.UI<? extends K extends SafeKey<K>> ui
PromptingKeyProvider.UI or
Class.
| Constructor Detail |
|---|
public PromptingKeyManager(PromptingKeyProvider.UI<? extends K> ui)
ui - the user interface for prompting for keys.| Method Detail |
|---|
public PromptingKeyProvider<K> getKeyProvider(URI resource)
KeyManager
getKeyProvider in interface KeyManager<K extends SafeKey<K>,PromptingKeyProvider<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 boolean moveKeyProvider(URI oldResource,
URI newResource)
KeyManageroldResource to
newResource.
moveKeyProvider in interface KeyManager<K extends SafeKey<K>,PromptingKeyProvider<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.
public boolean removeKeyProvider(URI resource)
KeyManager
removeKeyProvider in interface KeyManager<K extends SafeKey<K>,PromptingKeyProvider<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 TZP (ZIP.RAES) 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||