de.schlichtherle.crypto.io.raes
Class KeyManagerRaesParameters.Type0
java.lang.Object
de.schlichtherle.crypto.io.raes.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}.
|
Method Summary |
char[] |
getCreatePasswd()
Returns the password required to create or overwrite the RAES type 0 file. |
int |
getKeyStrength()
Returns the key strength to use for creating or overwriting the RAES file. |
char[] |
getOpenPasswd()
Returns the password required to open the RAES type 0 file for reading. |
void |
invalidOpenPasswd()
Callback to report that the password returned by Type0RaesParameters.getOpenPasswd()
is wrong. |
void |
setKeyStrength(int keyStrength)
Sets the key strength which was used when creating or overwriting the
RAES file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyManagerRaesParameters.Type0
private KeyManagerRaesParameters.Type0()
getOpenPasswd
public char[] getOpenPasswd()
throws RaesKeyException
- Description copied from interface:
Type0RaesParameters
- Returns the password required to open the RAES type 0 file for reading.
Please note that this method is called repeatedly until either the
returned password is correct or an exception has been thrown.
- Specified by:
getOpenPasswd in interface Type0RaesParameters
- Returns:
- A clone of the char array holding the password to open the RAES
file for reading - never
null.
- Throws:
RaesKeyException - If password retrieval has been disabled or
cancelled.
invalidOpenPasswd
public void invalidOpenPasswd()
- Description copied from interface:
Type0RaesParameters
- Callback to report that the password returned by
Type0RaesParameters.getOpenPasswd()
is wrong.
- Specified by:
invalidOpenPasswd in interface Type0RaesParameters
getCreatePasswd
public char[] getCreatePasswd()
throws RaesKeyException
- Description copied from interface:
Type0RaesParameters
- Returns the password required to create or overwrite the RAES type 0 file.
- Specified by:
getCreatePasswd in interface Type0RaesParameters
- Returns:
- A clone of the char array holding the password to use for
creating or overwriting the RAES file - never
null.
- Throws:
RaesKeyException - If password retrieval has been disabled or
cancelled.
getKeyStrength
public int 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
- See Also:
Type0RaesParameters.KEY_STRENGTH_128,
Type0RaesParameters.KEY_STRENGTH_192,
Type0RaesParameters.KEY_STRENGTH_256
setKeyStrength
public void setKeyStrength(int keyStrength)
- Description copied from interface:
Type0RaesParameters
- Sets the key strength which was used when creating or overwriting the
RAES file.
- Specified by:
setKeyStrength in interface Type0RaesParameters
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.