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 java.security.spec.EncodedKeySpec

Synopsis

This class is used to translate between keys and their external encoded format. The encoded format is always simply a series of bytes, but the format of the encoding of the key information into those bytes may vary depending upon the algorithm used to generate the key.

Class Definition

public abstract class java.security.spec.EncodedKeySpec
	extends java.lang.Object
	implements java.security.spec.KeySpec {

	// Constructors
	public EncodedKeySpec();

	// Instance Methods
	public abstract byte[] getEncoded();
	public abstract String getFormat();
}

See also:

KeyFactory, KeySpec, PKCS8EncodedKeySpec, X509EncodedKeySpec

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