Uses of Class
java.security.spec.InvalidKeySpecException
Package
Description
Provides the classes and interfaces for the security framework.
Provides the classes and interfaces for cryptographic
operations.
-
Uses of InvalidKeySpecException in java.security
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).protected abstract <T extends KeySpec>
TKeyFactorySpi.engineGetKeySpec
(Key key, Class<T> keySpec) Returns a specification (key material) of the given key object.final PrivateKey
KeyFactory.generatePrivate
(KeySpec keySpec) Generates a private key object from the provided key specification (key material).final PublicKey
KeyFactory.generatePublic
(KeySpec keySpec) Generates a public key object from the provided key specification (key material).final <T extends KeySpec>
TKeyFactory.getKeySpec
(Key key, Class<T> keySpec) Returns a specification (key material) of the given key object. -
Uses of InvalidKeySpecException in javax.crypto
Modifier and TypeMethodDescriptionprotected abstract SecretKey
SecretKeyFactorySpi.engineGenerateSecret
(KeySpec keySpec) Generates aSecretKey
object from the provided key specification (key material).protected abstract KeySpec
SecretKeyFactorySpi.engineGetKeySpec
(SecretKey key, Class<?> keySpec) Returns a specification (key material) of the given key object in the requested format.final SecretKey
SecretKeyFactory.generateSecret
(KeySpec keySpec) Generates aSecretKey
object from the provided key specification (key material).EncryptedPrivateKeyInfo.getKeySpec
(Cipher cipher) Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.final KeySpec
SecretKeyFactory.getKeySpec
(SecretKey key, Class<?> keySpec) Returns a specification (key material) of the given key object in the requested format.