|
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,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 K,? extends P> |
factory
|
private Map<URI,P> |
providers
|
| Constructor Summary | |
|---|---|
SafeKeyManager(KeyProvider.Factory<? extends K,? extends P> factory)
Constructs a new default key manager. |
|
| Method Summary | |
|---|---|
(package private) P |
findKeyProvider(URI resource)
|
P |
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 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 K extends SafeKey<K>,? extends P extends SafeKeyProvider<K>> factory
| Constructor Detail |
|---|
public SafeKeyManager(KeyProvider.Factory<? extends K,? 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>,P extends SafeKeyProvider<K>>resource - the URI of the protected resource.
P findKeyProvider(URI resource)
public boolean moveKeyProvider(URI oldResource,
URI newResource)
KeyManageroldResource to
newResource.
moveKeyProvider in interface KeyManager<K extends SafeKey<K>,P extends SafeKeyProvider<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>,P extends SafeKeyProvider<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 | ||||||||