O'Reilly logo

Java Security by Scott Oaks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Class javax.crypto.spec.DESKeySpec

Synopsis

This class represents a key specification for DES keys; this specification may be used with a secret key factory to import and export DES keys.

Class Definition

public class javax.crypto.spec.DESKeySpec
	extends java.lang.Object
	implements java.security.spec.KeySpec {

	//Constants
	public static final int DES_KEY_LEN;

	// Constructors
	public DESKeySpec(byte[]);
	public DESKeySpec(byte[], int);

	// Class Methods
	public static boolean isParityAdjusted(byte[], int);
	public static boolean isWeak(byte[], int);

	// Instance Methods
	public byte[] getKey();
}

See also:

SecretKeyFactory

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required