TrueZIP Driver ZIP.RAES (TZP) 7.1

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

java.lang.Object
  extended by de.schlichtherle.truezip.crypto.raes.param.KeyManagerRaesParameters.Type0
All Implemented Interfaces:
RaesParameters, Type0RaesParameters
Enclosing class:
KeyManagerRaesParameters

private class KeyManagerRaesParameters.Type0
extends Object
implements Type0RaesParameters

An adapter which presents the KeyManager's KeyProvider interface as Type0RaesParameters.


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schlichtherle.truezip.crypto.raes.Type0RaesParameters
Type0RaesParameters.KeyStrength
 
Field Summary
private  AesCipherParameters param
           
 
Constructor Summary
private KeyManagerRaesParameters.Type0()
           
 
Method Summary
 Type0RaesParameters.KeyStrength getKeyStrength()
          Returns the key strength to use for creating or overwriting the RAES file.
 char[] getReadPassword(boolean invalid)
          Returns the password required to open the RAES type 0 file for reading.
 char[] getWritePassword()
          Returns the password required to create or overwrite the RAES type 0 file.
 void setKeyStrength(Type0RaesParameters.KeyStrength keyStrength)
          Sets the key strength to use for creating or overwriting the RAES file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

param

private AesCipherParameters param
Constructor Detail

KeyManagerRaesParameters.Type0

private KeyManagerRaesParameters.Type0()
Method Detail

getWritePassword

public char[] getWritePassword()
                        throws RaesKeyException
Description copied from interface: Type0RaesParameters
Returns the password required to create or overwrite the RAES type 0 file.

Specified by:
getWritePassword in interface Type0RaesParameters
Returns:
A clone of the char array holding the password to use for creating or overwriting the RAES file.
Throws:
RaesKeyException - If password retrieval has been disabled or cancelled.

getReadPassword

public char[] getReadPassword(boolean invalid)
                       throws RaesKeyException
Description copied from interface: Type0RaesParameters
Returns the password required to open the RAES type 0 file for reading. This method is called consecutively until either the returned password is correct or an exception is thrown.

Specified by:
getReadPassword in interface Type0RaesParameters
Parameters:
invalid - true iff a previous call to this method resulted in an invalid password.
Returns:
A clone of the char array holding the password to open the RAES file for reading.
Throws:
RaesKeyException - If password retrieval has been disabled or cancelled.

getKeyStrength

public Type0RaesParameters.KeyStrength getKeyStrength()
Description copied from interface: Type0RaesParameters
Returns the key strength to use for creating or overwriting the RAES file.

Specified by:
getKeyStrength in interface Type0RaesParameters
Returns:
The key strength to use for creating or overwriting the RAES file.

setKeyStrength

public void setKeyStrength(Type0RaesParameters.KeyStrength keyStrength)
Description copied from interface: Type0RaesParameters
Sets the key strength to use for creating or overwriting the RAES file.

Specified by:
setKeyStrength in interface Type0RaesParameters
Parameters:
keyStrength - the key strength to use for creating or overwriting the RAES file.

TrueZIP Driver ZIP.RAES (TZP) 7.1

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