Uses of Interface
java.security.spec.KeySpec
Packages that use 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
Methods in java.security with type parameters of type KeySpecModifier and TypeMethodDescriptionprotected abstract <T extends KeySpec>
TKeyFactorySpi.engineGetKeySpec(Key key, Class<T> keySpec) Returns a specification (key material) of the given key object.final <T extends KeySpec>
TKeyFactory.getKeySpec(Key key, Class<T> keySpec) Returns a specification (key material) of the given key object.Methods in java.security with parameters of type KeySpecModifier and TypeMethodDescriptionprotected abstract PrivateKeyKeyFactorySpi.engineGeneratePrivate(KeySpec keySpec) Generates a private key object from the provided key specification (key material).protected abstract PublicKeyKeyFactorySpi.engineGeneratePublic(KeySpec keySpec) Generates a public key object from the provided key specification (key material).final PrivateKeyKeyFactory.generatePrivate(KeySpec keySpec) Generates a private key object from the provided key specification (key material).final PublicKeyKeyFactory.generatePublic(KeySpec keySpec) Generates a public key object from the provided key specification (key material). -
Uses of KeySpec in java.security.spec
Classes in java.security.spec that implement KeySpecModifier and TypeClassDescriptionclassThis class specifies a DSA private key with its associated parameters.classThis class specifies a DSA public key with its associated parameters.classThis immutable class specifies an elliptic curve private key with its associated parameters.classThis immutable class specifies an elliptic curve public key with its associated parameters.final classA class representing elliptic curve private keys as defined in RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA), including the curve and other algorithm parameters.final classA class representing elliptic curve public keys as defined in RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA), including the curve and other algorithm parameters.classThis class represents a public or private key in encoded format.classThis class represents the ASN.1 encoding of a private key, encoded according to the ASN.1 typePrivateKeyInfo.classThis 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.classThis 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.classThis class specifies an RSA private key.classThis class specifies an RSA public key.classThis class represents the ASN.1 encoding of a public key, encoded according to the ASN.1 typeSubjectPublicKeyInfo.classA class representing elliptic curve private keys as defined in RFC 7748, including the curve and other algorithm parameters.classA class representing elliptic curve public keys as defined in RFC 7748, including the curve and other algorithm parameters. -
Uses of KeySpec in javax.crypto
Methods in javax.crypto that return KeySpecModifier and TypeMethodDescriptionprotected abstract KeySpecSecretKeyFactorySpi.engineGetKeySpec(SecretKey key, Class<?> keySpec) Returns a specification (key material) of the given key object in the requested format.final KeySpecSecretKeyFactory.getKeySpec(SecretKey key, Class<?> keySpec) Returns a specification (key material) of the given key object in the requested format.Methods in javax.crypto with parameters of type KeySpecModifier and TypeMethodDescriptionprotected abstract SecretKeySecretKeyFactorySpi.engineGenerateSecret(KeySpec keySpec) Generates aSecretKeyobject from the provided key specification (key material).final SecretKeySecretKeyFactory.generateSecret(KeySpec keySpec) Generates aSecretKeyobject from the provided key specification (key material). -
Uses of KeySpec in javax.crypto.spec
Classes in javax.crypto.spec that implement KeySpecModifier and TypeClassDescriptionclassThis class specifies a DES-EDE ("triple-DES") key.classThis class specifies a DES key.classThis class specifies a Diffie-Hellman private key with its associated parameters.classThis class specifies a Diffie-Hellman public key with its associated parameters.classA user-chosen password that can be used with password-based encryption (PBE).classThis class specifies a secret key in a provider-independent fashion.