TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

de.schlichtherle.truezip.crypto.raes.param
Class AesCipherParameters

java.lang.Object
  extended by de.schlichtherle.truezip.crypto.raes.param.AesCipherParameters
All Implemented Interfaces:
SafeKey<AesCipherParameters>, Cloneable

public final class AesCipherParameters
extends Object
implements SafeKey<AesCipherParameters>

A Java bean which holds AES cipher parameters.

Author:
Christian Schlichtherle

Field Summary
private  Type0RaesParameters.KeyStrength keyStrength
           
private  char[] password
           
 
Constructor Summary
AesCipherParameters()
           
 
Method Summary
 AesCipherParameters clone()
          Clones this safe key.
 Type0RaesParameters.KeyStrength getKeyStrength()
          Returns the AES key strength, which defaults to Type0RaesParameters.KeyStrength.BITS_256.
 char[] getPassword()
           
 void reset()
          Resets this safe key to it's initial state, wiping any data from heap.
 void setKeyFileBytes(byte[] bytes)
           
 void setKeyStrength(Type0RaesParameters.KeyStrength keyStrength)
           
 void setPassword(char[] newPW)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyStrength

private Type0RaesParameters.KeyStrength keyStrength

password

private char[] password
Constructor Detail

AesCipherParameters

public AesCipherParameters()
Method Detail

clone

public AesCipherParameters clone()
Description copied from interface: SafeKey
Clones this safe key.

Specified by:
clone in interface SafeKey<AesCipherParameters>
Overrides:
clone in class Object

reset

public void reset()
Description copied from interface: SafeKey
Resets this safe key to it's initial state, wiping any data from heap.

Specified by:
reset in interface SafeKey<AesCipherParameters>

getKeyStrength

@NonNull
public Type0RaesParameters.KeyStrength getKeyStrength()
Returns the AES key strength, which defaults to Type0RaesParameters.KeyStrength.BITS_256.

Returns:
The AES key strength, which defaults to Type0RaesParameters.KeyStrength.BITS_256.

setKeyStrength

public void setKeyStrength(@NonNull
                           Type0RaesParameters.KeyStrength keyStrength)

getPassword

@Nullable
public char[] getPassword()

setPassword

public void setPassword(@Nullable
                        char[] newPW)

setKeyFileBytes

public void setKeyFileBytes(@Nullable
                            byte[] bytes)

TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

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