Top Description Interfaces Classes
module java.base

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

Related Documentation

For documentation that includes information about algorithm parameter and key specifications, please see:
Since
1.2

Interface Summary

Modifier and TypeInterface and Description
public interface
AlgorithmParameterSpec

A (transparent) specification of cryptographic parameters.

public interface
ECField

This interface represents an elliptic curve (EC) finite field.

public interface
KeySpec

A (transparent) specification of the key material that constitutes a cryptographic key.

Class Summary

Modifier and TypeClass and Description
public class
DSAGenParameterSpec

This immutable class specifies the set of parameters used for generating DSA parameters as specified in FIPS 186-3 Digital Signature Standard (DSS).

public class
DSAParameterSpec

This class specifies the set of parameters used with the DSA algorithm.

public class
DSAPrivateKeySpec

This class specifies a DSA private key with its associated parameters.

public class
DSAPublicKeySpec

This class specifies a DSA public key with its associated parameters.

public class
ECFieldF2m

This immutable class defines an elliptic curve (EC) characteristic 2 finite field.

public class
ECFieldFp

This immutable class defines an elliptic curve (EC) prime finite field.

public class
ECGenParameterSpec

This immutable class specifies the set of parameters used for generating elliptic curve (EC) domain parameters.

public class
ECParameterSpec

This immutable class specifies the set of domain parameters used with elliptic curve cryptography (ECC).

public class
ECPoint

This immutable class represents a point on an elliptic curve (EC) in affine coordinates.

public class
ECPrivateKeySpec

This immutable class specifies an elliptic curve private key with its associated parameters.

public class
ECPublicKeySpec

This immutable class specifies an elliptic curve public key with its associated parameters.

public class
EdDSAParameterSpec

A class used to specify EdDSA signature and verification parameters.

public class
EdECPoint

An elliptic curve point used to specify keys as defined by RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA).

public class
EdECPrivateKeySpec

A class representing elliptic curve private keys as defined in RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA), including the curve and other algorithm parameters.

public class
EdECPublicKeySpec

A class representing elliptic curve public keys as defined in RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA), including the curve and other algorithm parameters.

public class
EllipticCurve

This immutable class holds the necessary values needed to represent an elliptic curve.

public abstract class
EncodedKeySpec

This class represents a public or private key in encoded format.

public class
InvalidKeySpecException

This is the exception for invalid key specifications.

public class
InvalidParameterSpecException

This is the exception for invalid parameter specifications.

public class
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.

public class
NamedParameterSpec

This class is used to specify any algorithm parameters that are determined by a standard name.

public class
PKCS8EncodedKeySpec

This class represents the ASN.1 encoding of a private key, encoded according to the ASN.1 type PrivateKeyInfo.

public class
PSSParameterSpec

This class specifies a parameter spec for the RSASSA-PSS signature scheme, as defined in the PKCS#1 v2.2 standard.

public class
RSAKeyGenParameterSpec

This class specifies the set of parameters used to generate an RSA key pair.

public class
RSAMultiPrimePrivateCrtKeySpec

This class specifies an RSA multi-prime private key, as defined in the PKCS#1 v2.2 standard using the Chinese Remainder Theorem (CRT) information values for efficiency.

public class
RSAOtherPrimeInfo

This class represents the triplet (prime, exponent, and coefficient) inside RSA's OtherPrimeInfo structure, as defined in the PKCS#1 v2.2 standard.

public class
RSAPrivateCrtKeySpec

This class specifies an RSA private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values for efficiency.

public class
RSAPrivateKeySpec

This class specifies an RSA private key.

public class
RSAPublicKeySpec

This class specifies an RSA public key.

public class
X509EncodedKeySpec

This class represents the ASN.1 encoding of a public key, encoded according to the ASN.1 type SubjectPublicKeyInfo.

public class
XECPrivateKeySpec

A class representing elliptic curve private keys as defined in RFC 7748, including the curve and other algorithm parameters.

public class
XECPublicKeySpec

A class representing elliptic curve public keys as defined in RFC 7748, including the curve and other algorithm parameters.