Android Guides | Samples

Java.Security.Spec Namespace

This package provides the classes and interfaces needed to specify keys and parameters for encryption and signing algorithms.

Remarks

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.

Classes

TypeReason
DSAParameterSpecThe parameter specification used with the Digital Signature Algorithm (DSA).
DSAPrivateKeySpecThe parameters specifying a DSA private key.
DSAPublicKeySpecThe parameters specifying a DSA public key.
ECFieldF2mThe parameters specifying a characteristic 2 finite field of an elliptic curve.
ECFieldFpThe parameters specifying a prime finite field of an elliptic curve.
ECGenParameterSpecThe parameter specification used to generate elliptic curve domain parameters.
ECParameterSpecThe parameter specification used with Elliptic Curve Cryptography (ECC).
ECPointA Point on an Elliptic Curve in barycentric (or affine) coordinates.
ECPrivateKeySpecThe parameters specifying an Elliptic Curve (EC) private key.
ECPublicKeySpecThe parameters specifying an Elliptic Curve (EC) public key.
EllipticCurveAn Elliptic Curve with its necessary values.
EncodedKeySpecThe abstract key specification for a public or a private key in encoded format.
IAlgorithmParameterSpecThe marker interface for algorithm parameter specifications.
IECFieldThe base interface for a Finite Field of an Elliptic Curve.
IKeySpecThe marker interface for key specifications.
InvalidKeySpecExceptionThe exception that is thrown when an invalid key specification is encountered.
InvalidParameterSpecExceptionThe exception that is thrown when an invalid parameter specification is encountered.
MGF1ParameterSpecThe parameter specification for the Mask Generation Function (MGF1) in the RSA-PSS Signature and OAEP Padding scheme.
PKCS8EncodedKeySpecThe key specification for an encoded private key in ASN.1 format as defined in the PKCS#8 standard.
PSSParameterSpecThe parameter specification for the RSA-PSS Signature scheme.
RSAKeyGenParameterSpecThe parameter specification for generating an RSA key pair.
RSAMultiPrimePrivateCrtKeySpecThe key specification of a RSA multi-prime private key with the Chinese Remainder Theorem (CRT) information values used.
RSAOtherPrimeInfoThe additional prime information specified as triplet of primes, a prime exponent, and a Chinese Remainder Theorem (CRT) coefficient.
RSAPrivateCrtKeySpecThe key specification of a RSA private key using Chinese Remainder Theorem (CRT) values.
RSAPrivateKeySpecThe key specification of a RSA private key.
RSAPublicKeySpecThe key specification of a RSA public key.
X509EncodedKeySpecThe key specification of an X.509 encoded key in ASN.1 format.