The java.security.spec package contains classes that define transparent representations for DSA, RSA, and EC public and private keys and for X.509 and PKCS#8 encodings of those keys. It also defines a transparent representation for DSA algorithm parameters. The classes in this package are used in conjunction with java.security.KeyFactory and java.security.AlgorithmParameters for converting opaque Key and AlgorithmParameters objects to and from transparent representations.
This package is not frequently used. To make use of it, you must be somewhat familiar with the mathematics that underlies DSA and RSA public-key encryption and the encoding standards that specify how keys are encoded as byte streams.
public interfaceAlgorithmParameterSpec ; public interface
ECField ; public interface
KeySpec ;
public classDSAParameterSpec implements AlgorithmParameterSpec, java.security.interfaces.DSAParams; public class
DSAPrivateKeySpec implements KeySpec; public class
DSAPublicKeySpec implements KeySpec; public class
ECFieldF2m implements ECField; public class
ECFieldFp implements ECField; public class
ECGenParameterSpec implements AlgorithmParameterSpec; public class
ECParameterSpec implements AlgorithmParameterSpec; public class
ECPoint ; public class
ECPrivateKeySpec implements KeySpec; public class
ECPublicKeySpec implements KeySpec; public class
EllipticCurve ; public abstract class
EncodedKeySpec implements KeySpec; public class
PKCS8EncodedKeySpec extends EncodedKeySpec; public class
X509EncodedKeySpec extends EncodedKeySpec; public class
MGF1ParameterSpec implements AlgorithmParameterSpec; public class
PSSParameterSpec implements AlgorithmParameterSpec; public class
RSAKeyGenParameterSpec implements AlgorithmParameterSpec; public class
RSAOtherPrimeInfo ; public class
RSAPrivateKeySpec implements KeySpec; public class
RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec; public class
RSAPrivateCrtKeySpec extends RSAPrivateKeySpec; public class
RSAPublicKeySpec implements KeySpec;
public classInvalidKeySpecException extends java.security.GeneralSecurityException; public class
InvalidParameterSpecException extends java.security.GeneralSecurityException;