Build 1.0_r1(from source)

javax.crypto.spec
Class DESKeySpec

java.lang.Object
  extended by javax.crypto.spec.DESKeySpec
All Implemented Interfaces:
KeySpec

public class DESKeySpec
extends Object
implements KeySpec


Field Summary
static int DES_KEY_LEN
           
 
Constructor Summary
DESKeySpec(byte[] key)
           
DESKeySpec(byte[] key, int offset)
           
 
Method Summary
 byte[] getKey()
           
static boolean isParityAdjusted(byte[] key, int offset)
           
static boolean isWeak(byte[] key, int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DES_KEY_LEN

public static final int DES_KEY_LEN
See Also:
Constant Field Values
Constructor Detail

DESKeySpec

public DESKeySpec(byte[] key)
           throws InvalidKeyException
Throws:
InvalidKeyException

DESKeySpec

public DESKeySpec(byte[] key,
                  int offset)
           throws InvalidKeyException
Throws:
InvalidKeyException
Method Detail

getKey

public byte[] getKey()

isParityAdjusted

public static boolean isParityAdjusted(byte[] key,
                                       int offset)
                                throws InvalidKeyException
Throws:
InvalidKeyException

isWeak

public static boolean isWeak(byte[] key,
                             int offset)
                      throws InvalidKeyException
Throws:
InvalidKeyException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature