Uses of Class
java.security.spec.InvalidKeySpecException
| Package | Description |
|---|---|
| java.security |
Provides the classes and interfaces for the security framework.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic
operations.
|
-
Uses of InvalidKeySpecException in java.security
Methods in java.security that throw InvalidKeySpecException Modifier and Type Method Description protected 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).protected abstract <T extends KeySpec>
TKeyFactorySpi. engineGetKeySpec(Key key, Class<T> keySpec)Returns a specification (key material) of the given key object.PrivateKeyKeyFactory. generatePrivate(KeySpec keySpec)Generates a private key object from the provided key specification (key material).PublicKeyKeyFactory. generatePublic(KeySpec keySpec)Generates a public key object from the provided key specification (key material).<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
Methods in javax.crypto that throw InvalidKeySpecException Modifier and Type Method Description protected abstract SecretKeySecretKeyFactorySpi. engineGenerateSecret(KeySpec keySpec)Generates aSecretKeyobject from the provided key specification (key material).protected abstract KeySpecSecretKeyFactorySpi. engineGetKeySpec(SecretKey key, Class<?> keySpec)Returns a specification (key material) of the given key object in the requested format.SecretKeySecretKeyFactory. generateSecret(KeySpec keySpec)Generates aSecretKeyobject from the provided key specification (key material).PKCS8EncodedKeySpecEncryptedPrivateKeyInfo. getKeySpec(Cipher cipher)Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.KeySpecSecretKeyFactory. getKeySpec(SecretKey key, Class<?> keySpec)Returns a specification (key material) of the given key object in the requested format.