de.schlichtherle.truezip.crypto.raes.param
Class KeyManagerRaesParameters
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
service
private final KeyManagerService service
resource
private final URI resource
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.
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.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.