Uses of Interface
java.security.spec.KeySpec
Package
Description
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for key specifications and algorithm
parameter specifications.
Provides the classes and interfaces for cryptographic
operations.
Provides classes and interfaces for key specifications and
algorithm parameter specifications.
-
Uses of KeySpec in java.security
Modifier and TypeMethodDescriptionprotected abstract <T extends KeySpec>
TKeyFactorySpi.engineGetKeySpec(Key key, Class<T> keySpec)
Returns a specification (key material) of the given key object.<T extends KeySpec>
TKeyFactory.getKeySpec(Key key, Class<T> keySpec)
Returns a specification (key material) of the given key object.Modifier and TypeMethodDescriptionprotected abstract PrivateKey
KeyFactorySpi.engineGeneratePrivate(KeySpec keySpec)
Generates a private key object from the provided key specification (key material).protected abstract PublicKey
KeyFactorySpi.engineGeneratePublic(KeySpec keySpec)
Generates a public key object from the provided key specification (key material).KeyFactory.generatePrivate(KeySpec keySpec)
Generates a private key object from the provided key specification (key material).KeyFactory.generatePublic(KeySpec keySpec)
Generates a public key object from the provided key specification (key material). -
Uses of KeySpec in java.security.spec
Modifier and TypeClassDescriptionclass
This class specifies a DSA private key with its associated parameters.class
This class specifies a DSA public key with its associated parameters.class
This immutable class specifies an elliptic curve private key with its associated parameters.class
This immutable class specifies an elliptic curve public key with its associated parameters.class
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.class
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.class
This class represents a public or private key in encoded format.class
This class represents the ASN.1 encoding of a private key, encoded according to the ASN.1 typePrivateKeyInfo
.class
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.class
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.class
This class specifies an RSA private key.class
This class specifies an RSA public key.class
This class represents the ASN.1 encoding of a public key, encoded according to the ASN.1 typeSubjectPublicKeyInfo
.class
A class representing elliptic curve private keys as defined in RFC 7748, including the curve and other algorithm parameters.class
A class representing elliptic curve public keys as defined in RFC 7748, including the curve and other algorithm parameters. -
Uses of KeySpec in javax.crypto
Modifier and TypeMethodDescriptionprotected abstract KeySpec
SecretKeyFactorySpi.engineGetKeySpec(SecretKey key, Class<?> keySpec)
Returns a specification (key material) of the given key object in the requested format.SecretKeyFactory.getKeySpec(SecretKey key, Class<?> keySpec)
Returns a specification (key material) of the given key object in the requested format.Modifier and TypeMethodDescriptionprotected abstract SecretKey
SecretKeyFactorySpi.engineGenerateSecret(KeySpec keySpec)
Generates aSecretKey
object from the provided key specification (key material).SecretKeyFactory.generateSecret(KeySpec keySpec)
Generates aSecretKey
object from the provided key specification (key material). -
Uses of KeySpec in javax.crypto.spec
Modifier and TypeClassDescriptionclass
This class specifies a DES-EDE ("triple-DES") key.class
This class specifies a DES key.class
This class specifies a Diffie-Hellman private key with its associated parameters.class
This class specifies a Diffie-Hellman public key with its associated parameters.class
A user-chosen password that can be used with password-based encryption (PBE).class
This class specifies a secret key in a provider-independent fashion.