TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

de.schlichtherle.truezip.crypto.raes
Interface Type0RaesParameters

All Superinterfaces:
RaesParameters
All Known Implementing Classes:
KeyManagerRaesParameters.Type0

@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
public interface Type0RaesParameters
extends RaesParameters

The parameters of this interface are used with RAES type 0 files. Type 0 RAES files use password based encryption according to the specifications in PKCS #5 V2.0 und PKCS #12 V1.0.

Author:
Christian Schlichtherle
See Also:
PKCS #5, PKCS #12

Nested Class Summary
static class Type0RaesParameters.KeyStrength
          Defines the key strength for the AES algorithm.
 
Method Summary
 char[] getCreatePasswd()
          Returns the password required to create or overwrite the RAES type 0 file.
 Type0RaesParameters.KeyStrength getKeyStrength()
          Returns the key strength to use for creating or overwriting the RAES file.
 char[] getOpenPasswd(boolean invalid)
          Returns the password required to open the RAES type 0 file for reading.
 

Method Detail

getKeyStrength

Type0RaesParameters.KeyStrength getKeyStrength()
Returns the key strength to use for creating or overwriting the RAES file.

Returns:
The key strength to use for creating or overwriting the RAES file.

getCreatePasswd

char[] getCreatePasswd()
                       throws RaesKeyException
Returns the password required to create or overwrite the RAES type 0 file.

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.

getOpenPasswd

char[] getOpenPasswd(boolean invalid)
                     throws RaesKeyException
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.

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.

TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

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