Name

Class java.security.spec.X509EncodedKeySpec

Synopsis

This class represents the X509 encoding of a public key. It may also be used for private keys, although the PKCS#8 encoding is typically used for those keys.

Class Definition

public class java.security.spec.X509EncodedKeySpec
	extends java.security.spec.EncodedKeySpec {

	// Constructors
	public X509EncodedKeySpec(byte[]);

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

See also

EncodedKeySpec, PKCS8EncodedKeySpec

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.