Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 928
نمايش فراداده

DESKeySpecjavax.crypto.spec

Java 1.4

This class is a transparent representation of a DES key. The key is eight bytes long.

Figure 17-16. javax.crypto.spec.DESKeySpec

public class

DESKeySpec implements java.security.spec.KeySpec { // Public Constructors public

DESKeySpec (byte[ ]

key ) throws java.security.InvalidKeyException; public

DESKeySpec (byte[ ]

key , int

offset ) throws java.security.InvalidKeyException; // Public Constants public static final int

DES_KEY_LEN ; =8 // Public Class Methods public static boolean

isParityAdjusted (byte[ ]

key , int

offset ) throws java.security.InvalidKeyException; public static boolean

isWeak (byte[ ]

key , int

offset ) throws java.security.InvalidKeyException; // Public Instance Methods public byte[ ]

getKey ( ); }