This class represents the ASN.1 encoding of a private key,
encoded according to the ASN.1 type PrivateKeyInfo,
whose syntax is defined in the PKCS#8 standard, as follows:
This class specifies an RSA private key, as defined in the PKCS#1
standard, using the Chinese Remainder Theorem (CRT) information values for
efficiency.
This class represents the ASN.1 encoding of a public key,
encoded according to the ASN.1 type SubjectPublicKeyInfo,
whose syntax is defined in the X.509 standard, as follows:
This is the exception for invalid parameter specifications.
Package java.security.spec Description
Provides classes and interfaces for key specifications and algorithm
parameter specifications.
A key specification is a transparent representation of the key material
that constitutes a key. A key may be specified in an algorithm-specific
way, or in an algorithm-independent encoding format (such as ASN.1).
This package contains key specifications for DSA public and private keys,
RSA public and private keys, PKCS #8 private keys in DER-encoded format,
and X.509 public and private keys in DER-encoded format.
An algorithm parameter specification is a transparent representation
of the sets of parameters used with an algorithm. This package contains
an algorithm parameter specification for parameters used with the
DSA algorithm.
Package Specification
PKCS #1: RSA Encryption Standard, Version 1.5, November 1993
PKCS #8: Private-Key Information Syntax Standard,
Version 1.2, November 1993
Federal Information Processing Standards Publication (FIPS PUB) 186:
Digital Signature Standard (DSS)
Related Documentation
For documentation that includes information about algorithm parameter
and key specifications, please see:
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.