TrueZIP Driver ZIP.RAES (TZP) 7.1

de.schlichtherle.truezip.fs.archive.zip.raes
Class PromptingKeyManagerService

java.lang.Object
  extended by de.schlichtherle.truezip.key.spi.KeyManagerService
      extended by 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

Field Summary
private  PromptingKeyManager<AesCipherParameters> manager
           
 
Constructor Summary
PromptingKeyManagerService()
          Constructs a new prompting key manager service using the default view.
PromptingKeyManagerService(PromptingKeyProvider.View<AesCipherParameters> view)
          Constructs a new prompting key manager service using the given view.
 
Method Summary
<K> KeyManager<K>
get(Class<K> type)
          Returns the singleton key manager for the given key type.
 
Methods inherited from class de.schlichtherle.truezip.key.spi.KeyManagerService
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

manager

private final PromptingKeyManager<AesCipherParameters> manager
Constructor Detail

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.
Method Detail

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.

TrueZIP Driver ZIP.RAES (TZP) 7.1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.