|
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,P>
@ThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class SafeKeyManager<K extends SafeKey<K>,P extends SafeKeyProvider<K>>
Uses a map to hold the safe key providers managed by this instance.
| Field Summary | |
|---|---|
private KeyProvider.Factory<? extends P> |
factory
|
private Map<URI,P> |
providers
|
| Constructor Summary | |
|---|---|
SafeKeyManager(KeyProvider.Factory<? extends P> factory)
Constructs a new default key manager. |
|
| Method Summary | |
|---|---|
P |
getKeyProvider(URI resource)
Returns the key provider for the given protected resource. |
P |
moveKeyProvider(URI oldResource,
URI newResource)
Moves the key provider from the URI oldResource to
newResource. |
P |
removeKeyProvider(URI resource)
Removes the key provider for the given protected resource. |
private P |
removeKeyProvider0(URI resource)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Map<URI,P extends SafeKeyProvider<K>> providers
private final KeyProvider.Factory<? extends P extends SafeKeyProvider<K>> factory
| Constructor Detail |
|---|
public SafeKeyManager(KeyProvider.Factory<? extends P> factory)
factory - the factory for creating new key providers.| Method Detail |
|---|
public P getKeyProvider(URI resource)
KeyManager
getKeyProvider in interface KeyManager<K extends SafeKey<K>>resource - the URI of the protected resource.
public P moveKeyProvider(URI oldResource,
URI newResource)
KeyManageroldResource to
newResource.
moveKeyProvider in interface KeyManager<K extends SafeKey<K>>oldResource - the old URI of the protected resource.newResource - the new URI of the protected resource.
newResource.public P removeKeyProvider(URI resource)
KeyManager
removeKeyProvider in interface KeyManager<K extends SafeKey<K>>resource - the URI of the protected resource.
private P removeKeyProvider0(URI resource)
|
TrueZIP Driver ZIP.RAES (TZP) 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||