@Immutable @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class KeyManagerLocator extends Object implements KeyManagerProvider
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| Modifier and Type | Class and Description |
|---|---|
private static class |
KeyManagerLocator.Boot
A static data utility class used for lazy initialization.
|
| Modifier and Type | Field and Description |
|---|---|
static KeyManagerLocator |
SINGLETON
The singleton instance of this class.
|
| Modifier | Constructor and Description |
|---|---|
private |
KeyManagerLocator()
You cannot instantiate this class.
|
public static final KeyManagerLocator SINGLETON
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 KeyManagerProviderCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.