JavaTM 2 Platform
Std. Ed. v1.4.2

Uses of Interface
java.security.spec.KeySpec

Packages that use KeySpec
java.security Provides the classes and interfaces for the security framework. 
java.security.spec Provides classes and interfaces for key specifications and algorithm parameter specifications. 
javax.crypto Provides the classes and interfaces for cryptographic operations. 
javax.crypto.spec Provides classes and interfaces for key specifications and algorithm parameter specifications. 
 

Uses of KeySpec in java.security
 

Methods in java.security that return KeySpec
protected abstract  KeySpec KeyFactorySpi.engineGetKeySpec(Key key, Class keySpec)
          Returns a specification (key material) of the given key object.
 KeySpec KeyFactory.getKeySpec(Key key, Class keySpec)
          Returns a specification (key material) of the given key object.
 

Methods in java.security with parameters of type KeySpec
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).
 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).
 

Uses of KeySpec in java.security.spec
 

Classes in java.security.spec that implement KeySpec
 class DSAPrivateKeySpec
          This class specifies a DSA private key with its associated parameters.
 class DSAPublicKeySpec
          This class specifies a DSA public key with its associated parameters.
 class EncodedKeySpec
          This class represents a public or private key in encoded format.
 class PKCS8EncodedKeySpec
          This class represents the ASN.1 encoding of a private key, encoded according to the ASN.1 type PrivateKeyInfo.
 class RSAMultiPrimePrivateCrtKeySpec
          This class specifies an RSA multi-prime private key, as defined in the PKCS#1 v2.1, using the Chinese Remainder Theorem (CRT) information values for efficiency.
 class RSAPrivateCrtKeySpec
          This class specifies an RSA private key, as defined in the PKCS#1 standard, using the Chinese Remainder Theorem (CRT) information values for efficiency.
 class RSAPrivateKeySpec
          This class specifies an RSA private key.
 class RSAPublicKeySpec
          This class specifies an RSA public key.
 class X509EncodedKeySpec
          This class represents the ASN.1 encoding of a public key, encoded according to the ASN.1 type SubjectPublicKeyInfo.
 

Uses of KeySpec in javax.crypto
 

Methods in javax.crypto that return KeySpec
protected abstract  KeySpec SecretKeyFactorySpi.engineGetKeySpec(SecretKey key, Class keySpec)
          Returns a specification (key material) of the given key object in the requested format.
 KeySpec SecretKeyFactory.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 KeySpec
protected abstract  SecretKey SecretKeyFactorySpi.engineGenerateSecret(KeySpec keySpec)
          Generates a SecretKey object from the provided key specification (key material).
 SecretKey SecretKeyFactory.generateSecret(KeySpec keySpec)
          Generates a SecretKey object from the provided key specification (key material).
 

Uses of KeySpec in javax.crypto.spec
 

Classes in javax.crypto.spec that implement KeySpec
 class DESedeKeySpec
          This class specifies a DES-EDE ("triple-DES") key.
 class DESKeySpec
          This class specifies a DES key.
 class DHPrivateKeySpec
          This class specifies a Diffie-Hellman private key with its associated parameters.
 class DHPublicKeySpec
          This class specifies a Diffie-Hellman public key with its associated parameters.
 class PBEKeySpec
          A user-chosen password that can be used with password-based encryption (PBE).
 class SecretKeySpec
          This class specifies a secret key in a provider-independent fashion.
 


JavaTM 2 Platform
Std. Ed. v1.4.2

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.

Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.