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

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.