JavaTM 2 Platform
Std. Ed. v1.4.0

Uses of Class
java.security.spec.InvalidKeySpecException

Packages that use InvalidKeySpecException
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
protected abstract  PublicKey KeyFactorySpi.engineGeneratePublic(KeySpec keySpec)
          Generates a public key object from the provided key specification (key material).
protected abstract  PrivateKey KeyFactorySpi.engineGeneratePrivate(KeySpec keySpec)
          Generates a private key object from the provided key specification (key material).
protected abstract  KeySpec KeyFactorySpi.engineGetKeySpec(Key key, Class keySpec)
          Returns a specification (key material) of the given key object.
 PublicKey KeyFactory.generatePublic(KeySpec keySpec)
          Generates a public key object from the provided key specification (key material).
 PrivateKey KeyFactory.generatePrivate(KeySpec keySpec)
          Generates a private key object from the provided key specification (key material).
 KeySpec KeyFactory.getKeySpec(Key key, Class keySpec)
          Returns a specification (key material) of the given key object.
 

Uses of InvalidKeySpecException in javax.crypto
 

Methods in javax.crypto that throw InvalidKeySpecException
 PKCS8EncodedKeySpec EncryptedPrivateKeyInfo.getKeySpec(Cipher c)
          Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.
protected abstract  SecretKey SecretKeyFactorySpi.engineGenerateSecret(KeySpec keySpec)
          Generates a SecretKey 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.
 SecretKey SecretKeyFactory.generateSecret(KeySpec keySpec)
          Generates a SecretKey object from the provided key specification (key material).
 KeySpec SecretKeyFactory.getKeySpec(SecretKey key, Class keySpec)
          Returns a specification (key material) of the given key object in the requested format.
 


JavaTM 2 Platform
Std. Ed. v1.4.0

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.