Name

Class java.security.spec.PKCS8EncodedKeySpec

Description

This class represents the PKCS#8 encoding of a private key; the key is encoded in DER format. This is the class that is typically used when dealing with DSA private keys in a key factory.

Class Definition

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

  // Constructors
  public PKCS8EncodedKeySpec(byte[]);

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

See Also

EncodedKeySpec, X509EncodedKeySpec

Get Java Cryptography 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.