|
TrueZIP Driver ZIP.RAES (TZP) 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.crypto.raes.param.AesCipherParameters
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class AesCipherParameters
A Java bean which holds AES cipher parameters.
| Field Summary | |
|---|---|
private Type0RaesParameters.KeyStrength |
keyStrength
|
private char[] |
password
|
| Constructor Summary | |
|---|---|
AesCipherParameters()
|
|
| Method Summary | |
|---|---|
AesCipherParameters |
clone()
Returns a clone of this safe key or this
if and only if the implementation is immutable. |
Type0RaesParameters.KeyStrength |
getKeyStrength()
Returns the AES cipher key strength, which defaults to Type0RaesParameters.KeyStrength.BITS_256. |
char[] |
getPassword()
Returns a protective copy of the password char array. |
void |
reset()
Resets this safe key to it's initial state, wiping any data from heap, or does nothing if and only if the implementation is immutable. |
void |
setKeyFileBytes(byte[] bytes)
Decodes the given byte array to a password char array for subsequent use. |
void |
setKeyStrength(Type0RaesParameters.KeyStrength keyStrength)
Sets the AES cipher key strength. |
void |
setPassword(char[] newPW)
Copies the given password char array for subsequent use as the AES cipher key. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Type0RaesParameters.KeyStrength keyStrength
@CheckForNull private char[] password
| Constructor Detail |
|---|
public AesCipherParameters()
| Method Detail |
|---|
public AesCipherParameters clone()
SafeKeythis
if and only if the implementation is immutable.
clone in interface SafeKey<AesCipherParameters>clone in class Objectpublic void reset()
SafeKey
reset in interface SafeKey<AesCipherParameters>@Nullable public char[] getPassword()
public void setPassword(@CheckForNull
char[] newPW)
This method makes a protective copy of the given password char array. It's highly recommended to overwrite this array with any non-password data after calling this method.
newPW - the password char array to be copied for subsequent use.
public void setKeyFileBytes(@CheckForNull
byte[] bytes)
This method makes a protective copy of the given key file byte array. It's highly recommended to overwrite this array with any non-password data after calling this method.
bytes - the byte array to decode.public Type0RaesParameters.KeyStrength getKeyStrength()
Type0RaesParameters.KeyStrength.BITS_256.
Type0RaesParameters.KeyStrength.BITS_256.public void setKeyStrength(Type0RaesParameters.KeyStrength keyStrength)
keyStrength - the AES cipher key strength.
|
TrueZIP Driver ZIP.RAES (TZP) 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||