Skip to content

Most visited

Recently visited

navigation
Added in API level 1

java.security.spec

This package provides the classes and interfaces needed to specify keys and parameters for encryption and signing algorithms. The following standards are supported: (1) PKCS#1 RSA encryption standard; (2) FIPS-186 DSA (signature) standard; (3) PKCS#8 private key information standard. Keys may be specified via algorithm or in a more abstract and general way with ASN.1. The parameters for the Elliptic Curve (EC) encryption algorithm are only specified as input parameters to the relevant EC-generator.

Interfaces

AlgorithmParameterSpec The marker interface for algorithm parameter specifications. 
ECField The base interface for a Finite Field of an Elliptic Curve. 
KeySpec The marker interface for key specifications. 

Classes

DSAParameterSpec The parameter specification used with the Digital Signature Algorithm (DSA). 
DSAPrivateKeySpec The parameters specifying a DSA private key. 
DSAPublicKeySpec The parameters specifying a DSA public key. 
ECFieldF2m The parameters specifying a characteristic 2 finite field of an elliptic curve. 
ECFieldFp The parameters specifying a prime finite field of an elliptic curve. 
ECGenParameterSpec The parameter specification used to generate elliptic curve domain parameters. 
ECParameterSpec The parameter specification used with Elliptic Curve Cryptography (ECC). 
ECPoint A Point on an Elliptic Curve in barycentric (or affine) coordinates. 
ECPrivateKeySpec The parameters specifying an Elliptic Curve (EC) private key. 
ECPublicKeySpec The parameters specifying an Elliptic Curve (EC) public key. 
EllipticCurve An Elliptic Curve with its necessary values. 
EncodedKeySpec The abstract key specification for a public or a private key in encoded format. 
MGF1ParameterSpec The parameter specification for the Mask Generation Function (MGF1) in the RSA-PSS Signature and OAEP Padding scheme. 
PKCS8EncodedKeySpec The key specification for an encoded private key in ASN.1 format as defined in the PKCS#8 standard. 
PSSParameterSpec The parameter specification for the RSA-PSS Signature scheme. 
RSAKeyGenParameterSpec The parameter specification for generating an RSA key pair. 
RSAMultiPrimePrivateCrtKeySpec The key specification of a RSA multi-prime private key with the Chinese Remainder Theorem (CRT) information values used. 
RSAOtherPrimeInfo The additional prime information specified as triplet of primes, a prime exponent, and a Chinese Remainder Theorem (CRT) coefficient. 
RSAPrivateCrtKeySpec The key specification of a RSA private key using Chinese Remainder Theorem (CRT) values. 
RSAPrivateKeySpec The key specification of a RSA private key. 
RSAPublicKeySpec The key specification of a RSA public key. 
X509EncodedKeySpec The key specification of an X.509 encoded key in ASN.1 format. 

Exceptions

InvalidKeySpecException The exception that is thrown when an invalid key specification is encountered. 
InvalidParameterSpecException The exception that is thrown when an invalid parameter specification is encountered. 
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.