All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class javax.crypto.spec.DESParameterSpec

java.lang.Object
    |
    +----javax.crypto.spec.DESParameterSpec

public class DESParameterSpec
extends Object
implements AlgorithmParameterSpec
This class specifies the parameter used with the DES or DES-EDE ("triple-DES") algorithms. This parameter is called initialization vector (IV).

See Also:
java.security.spec.AlgorithmParameterSpec

Constructor Index

 o DESParameterSpec(byte[])
Uses the first 8 bytes in initVector as the IV.
 o DESParameterSpec(byte[], int)
Uses the first 8 bytes in initVector, beginning at offset, as the IV.

Method Index

 o getIV()
Returns the initialization vector (IV).

Constructors

 o DESParameterSpec
public DESParameterSpec(byte[] initVector)
Uses the first 8 bytes in initVector as the IV.

Parameters:
initVector - the buffer with the IV
 o DESParameterSpec
public DESParameterSpec(byte[] initVector,
                        int offset)
Uses the first 8 bytes in initVector, beginning at offset, as the IV.

Parameters:
initVector - the buffer with the IV
offset - the offset in initVector, where the IV starts

Methods

 o getIV
public byte[] getIV()
Returns the initialization vector (IV).

Returns:
the initialization vector (IV)

All Packages  Class Hierarchy  This Package  Previous  Next  Index