@NonNullByDefault
Package java.security.spec
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 Cryptography Specifications, Version 2.2 (RFC 8017)
- 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:-
Interface Summary Interface Description AlgorithmParameterSpec A (transparent) specification of cryptographic parameters.KeySpec A (transparent) specification of the key material that constitutes a cryptographic key. -
Class Summary Class Description ECGenParameterSpec This immutable class specifies the set of parameters used for generating elliptic curve (EC) domain parameters.EncodedKeySpec This class represents a public or private key in encoded format.MGF1ParameterSpec This class specifies the set of parameters used with mask generation function MGF1 in OAEP Padding and RSASSA-PSS signature scheme, as defined in the PKCS#1 v2.2 standard.PKCS8EncodedKeySpec This class represents the ASN.1 encoding of a private key, encoded according to the ASN.1 typePrivateKeyInfo.RSAKeyGenParameterSpec This class specifies the set of parameters used to generate an RSA key pair.X509EncodedKeySpec This class represents the ASN.1 encoding of a public key, encoded according to the ASN.1 typeSubjectPublicKeyInfo. -
Exception Summary Exception Description InvalidKeySpecException This is the exception for invalid key specifications.InvalidParameterSpecException This is the exception for invalid parameter specifications.