de.flexiprovider.common.mode
Class ModeParameterSpec

java.lang.Object
  |
  +--javax.crypto.spec.IvParameterSpec
        |
        +--de.flexiprovider.common.mode.ModeParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec
Direct Known Subclasses:
CFBParameterSpec, OFBParameterSpec

public class ModeParameterSpec
extends javax.crypto.spec.IvParameterSpec
implements AlgorithmParameterSpec

This interface groups (and provides type safety for) all mode parameter specifications. All mode parameter specifications must implement this interface.


Constructor Summary
ModeParameterSpec(byte[] iv)
          Constructor.
ModeParameterSpec(byte[] iv, int offset, int length)
          Constructor.
ModeParameterSpec(javax.crypto.spec.IvParameterSpec params)
          Converts a JCA IvParameterSpec in a Flexi IvParameterSpec.
 
Methods inherited from class javax.crypto.spec.IvParameterSpec
getIV
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeParameterSpec

public ModeParameterSpec(javax.crypto.spec.IvParameterSpec params)
Converts a JCA IvParameterSpec in a Flexi IvParameterSpec.
Parameters:
params - the JCA IvParameterSpec.

ModeParameterSpec

public ModeParameterSpec(byte[] iv)
Constructor. Set the initialization vector (IV). The IV may be null.
Parameters:
iv - the IV

ModeParameterSpec

public ModeParameterSpec(byte[] iv,
                         int offset,
                         int length)
Constructor. Set the initialization vector (IV). The IV must not be null.
Parameters:
iv - the byte array containing the IV
offset - the offset where the IV starts
length - the length of the IV