TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

de.schlichtherle.truezip.crypto.raes.param
Class KeyManagerRaesParameters

java.lang.Object
  extended by de.schlichtherle.truezip.crypto.raes.param.KeyManagerRaesParameters
All Implemented Interfaces:
RaesParameters, RaesParametersAgent

@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
public final class KeyManagerRaesParameters
extends Object
implements RaesParametersAgent

An adapter which retrieves RaesParameters by using a KeyManager.

According to the requirements of RAES, only password based encryption is supported. The adapter pattern allows this class to be changed to support other encryption and authentication schemes in future versions without requiring to change the client code.

Author:
Christian Schlichtherle

Nested Class Summary
private  class KeyManagerRaesParameters.Type0
          An adapter which presents the KeyManager's KeyProvider interface as Type0RaesParameters.
 
Field Summary
private  URI resource
           
private  KeyManagerService service
           
 
Constructor Summary
KeyManagerRaesParameters(KeyManagerService service, URI resource)
          Constructs a new set of default RAES parameters.
 
Method Summary
 RaesParameters getParameters(Class<? extends RaesParameters> type)
          Requests a RaesParameters instance of the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

private final KeyManagerService service

resource

private final URI resource
Constructor Detail

KeyManagerRaesParameters

public KeyManagerRaesParameters(KeyManagerService service,
                                URI resource)
Constructs a new set of default RAES parameters.

Parameters:
resource - the non-null absolute, hierarchical and normalized URI of the RAES file.
Method Detail

getParameters

public RaesParameters getParameters(Class<? extends RaesParameters> type)
Description copied from interface: RaesParametersAgent
Requests a RaesParameters instance of the given type. It is permissible to return an instance of any other implementation of the RaesParameters interface. If the returned object is an instance of an implementation of this interface, it will be used to continue the search for RAES parameters recursively. Otherwise the search will be aborted.

Specified by:
getParameters in interface RaesParametersAgent
Parameters:
type - The RaesParameters interface class which's implementation is searched.
Returns:
An instance of RaesParameters or null if no RAES parameters are available.

TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

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