de.schlichtherle.truezip.fs.archive.zip.raes
Class PromptingKeyManagerService
java.lang.Object
de.schlichtherle.truezip.key.spi.KeyManagerService
de.schlichtherle.truezip.fs.archive.zip.raes.PromptingKeyManagerService
- All Implemented Interfaces:
- KeyManagerProvider
@Immutable
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
public final class PromptingKeyManagerService
- extends KeyManagerService
A container for a prompting key manager implementation for
AesCipherParameters.
- Author:
- Christian Schlichtherle
|
Method Summary |
|
get(Class<K> type)
Returns the singleton key manager for the given key type. |
manager
private final PromptingKeyManager<AesCipherParameters> manager
PromptingKeyManagerService
public PromptingKeyManagerService()
- Constructs a new prompting key manager service using the default view.
If this JVM is running
headless,
then the view of the prompting key provider of the prompting key manager
is an instance of
AesCipherParametersView.
Otherwise, it's an instance of
AesCipherParametersView.
PromptingKeyManagerService
public PromptingKeyManagerService(PromptingKeyProvider.View<AesCipherParameters> view)
- Constructs a new prompting key manager service using the given view.
- Parameters:
view - the view for the prompting key providers of the prompting
key manager.
get
public <K> KeyManager<K> get(Class<K> type)
- Description copied from interface:
KeyManagerProvider
- Returns the singleton key manager for the given key type.
Calling this method several times must return the same key manager
for the same key type in order to ensure consistency of the key space.
- Returns:
- The key manager for the given key type.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.