| Package | Description | 
|---|---|
| java.security | Provides the classes and interfaces for the security framework. | 
| java.security.interfaces | Provides interfaces for generating RSA (Rivest, Shamir and
 Adleman AsymmetricCipher algorithm)
 keys as defined in the RSA Laboratory Technical Note
 PKCS#1, and DSA (Digital Signature
 Algorithm) keys as defined in NIST's FIPS-186. | 
| java.security.spec | Provides classes and interfaces for key specifications and algorithm
 parameter specifications. | 
| javax.crypto | Provides the classes and interfaces for cryptographic operations. | 
| javax.crypto.spec | Provides classes and interfaces for key specifications and algorithm
parameter specifications. | 
| javax.xml.crypto | Common classes for XML cryptography. | 
| javax.xml.crypto.dsig | Classes for generating and validating XML digital
signatures. | 
| javax.xml.crypto.dsig.spec | Parameter classes for XML digital signatures. | 
| Class and Description | 
|---|
| AlgorithmParameterSpec A (transparent) specification of cryptographic parameters. | 
| InvalidKeySpecException This is the exception for invalid key specifications. | 
| InvalidParameterSpecException This is the exception for invalid parameter specifications. | 
| KeySpec A (transparent) specification of the key material
 that constitutes a cryptographic key. | 
| Class and Description | 
|---|
| AlgorithmParameterSpec A (transparent) specification of cryptographic parameters. | 
| ECParameterSpec This immutable class specifies the set of domain parameters
 used with elliptic curve cryptography (ECC). | 
| ECPoint This immutable class represents a point on an elliptic curve (EC)
 in affine coordinates. | 
| RSAOtherPrimeInfo This class represents the triplet (prime, exponent, and coefficient)
 inside RSA's OtherPrimeInfo structure, as defined in the
 PKCS#1 v2.2 standard. | 
| Class and Description | 
|---|
| AlgorithmParameterSpec A (transparent) specification of cryptographic parameters. | 
| ECField This interface represents an elliptic curve (EC) finite field. | 
| ECParameterSpec This immutable class specifies the set of domain parameters
 used with elliptic curve cryptography (ECC). | 
| ECPoint This immutable class represents a point on an elliptic curve (EC)
 in affine coordinates. | 
| EllipticCurve This immutable class holds the necessary values needed to represent
 an elliptic curve. | 
| EncodedKeySpec This class represents a public or private key in encoded format. | 
| KeySpec A (transparent) specification of the key material
 that constitutes a cryptographic key. | 
| 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. | 
| PSSParameterSpec This class specifies a parameter spec for RSASSA-PSS signature scheme,
 as defined in the
 PKCS#1 v2.2 standard. | 
| RSAOtherPrimeInfo This class represents the triplet (prime, exponent, and coefficient)
 inside RSA's OtherPrimeInfo structure, as defined in the
 PKCS#1 v2.2 standard. | 
| RSAPrivateKeySpec This class specifies an RSA private key. | 
| Class and Description | 
|---|
| AlgorithmParameterSpec A (transparent) specification of cryptographic parameters. | 
| InvalidKeySpecException This is the exception for invalid key specifications. | 
| KeySpec A (transparent) specification of the key material
 that constitutes a cryptographic key. | 
| PKCS8EncodedKeySpec This class represents the ASN.1 encoding of a private key,
 encoded according to the ASN.1 type  PrivateKeyInfo. | 
| Class and Description | 
|---|
| AlgorithmParameterSpec A (transparent) specification of cryptographic parameters. | 
| KeySpec A (transparent) specification of the key material
 that constitutes a cryptographic key. | 
| Class and Description | 
|---|
| AlgorithmParameterSpec A (transparent) specification of cryptographic parameters. | 
| Class and Description | 
|---|
| AlgorithmParameterSpec A (transparent) specification of cryptographic parameters. | 
| Class and Description | 
|---|
| AlgorithmParameterSpec A (transparent) specification of cryptographic parameters. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.