de.flexiprovider.core.rijndael
Class RijndaelKeyGenParameterSpec

java.lang.Object
  |
  +--de.flexiprovider.core.rijndael.RijndaelKeyGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec

public class RijndaelKeyGenParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class specifies parameters used for initializing the RijndaelKeyGenerator. The parameters consist of the key size in bits. Values for the key size are 128, 192, and 256 bits, with the default being 128 bits.

Author:
Martin Döring

Field Summary
static int DEFAULT_KEY_SIZE
          The default key size (128 bits)
 
Constructor Summary
RijndaelKeyGenParameterSpec()
          Construct the default parameters.
RijndaelKeyGenParameterSpec(int keySize)
          Construct new parameters from the given key size.
 
Method Summary
 int getKeySize()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEY_SIZE

public static final int DEFAULT_KEY_SIZE
The default key size (128 bits)
Constructor Detail

RijndaelKeyGenParameterSpec

public RijndaelKeyGenParameterSpec()
Construct the default parameters. Choose key size as DEFAULT_KEY_SIZE.

RijndaelKeyGenParameterSpec

public RijndaelKeyGenParameterSpec(int keySize)
Construct new parameters from the given key size. If the key size is invalid, the default key size is chosen.
Parameters:
keySize - the key size (128, 192, or 256 bits)
Method Detail

getKeySize

public int getKeySize()
Returns:
the key size in bits