|
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.sl.KeyManagerLocator
@Immutable @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class KeyManagerLocator
Locates a key manager service of a class with a name which is resolved by querying a system property or searching the class path or using a default implementation, whatever yields a result first.
First, the value of the system property
with the class name "de.schlichtherle.truezip.key.spi.KeyManagerService"
as the key is queried.
If this yields a value, the class with that name is then loaded and
instantiated by calling its no-arg constructor.
Otherwise, the class path is searched for any resource file with the name
"META-INF/services/de.schlichtherle.truezip.key.spi.KeyManagerService".
If this yields a result, the class with the name in this file is then loaded
and instantiated by calling its no-arg constructor.
Otherwise, the expression
new PromptingKeyManagerService() is used to create the
key manager service in this container.
PromptingKeyManagerService| Nested Class Summary | |
|---|---|
private static class |
KeyManagerLocator.Holder
A static data utility class used for lazy initialization. |
| Field Summary | |
|---|---|
static KeyManagerLocator |
SINGLETON
The singleton instance of this class. |
| Constructor Summary | |
|---|---|
private |
KeyManagerLocator()
You cannot instantiate this class. |
| Method Summary | ||
|---|---|---|
|
get(Class<K> type)
Returns the singleton key manager for the given key type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final KeyManagerLocator SINGLETON
| Constructor Detail |
|---|
private KeyManagerLocator()
| Method Detail |
|---|
public <K> KeyManager<K> get(Class<K> type)
KeyManagerProviderCalling this method several times must return the same key manager for the same key type in order to ensure consistency of the key space.
get in interface KeyManagerProvider
|
TrueZIP Driver ZIP.RAES (TZP) 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||