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