Build 1.0_r1(from source)

javax.crypto
Class SecretKeyFactory

java.lang.Object
  extended by javax.crypto.SecretKeyFactory

public class SecretKeyFactory
extends Object


Constructor Summary
protected SecretKeyFactory(SecretKeyFactorySpi keyFacSpi, Provider provider, String algorithm)
           
 
Method Summary
 SecretKey generateSecret(KeySpec keySpec)
           
 String getAlgorithm()
           
static SecretKeyFactory getInstance(String algorithm)
           
static SecretKeyFactory getInstance(String algorithm, Provider provider)
           
static SecretKeyFactory getInstance(String algorithm, String provider)
           
 KeySpec getKeySpec(SecretKey key, Class keySpec)
           
 Provider getProvider()
           
 SecretKey translateKey(SecretKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecretKeyFactory

protected SecretKeyFactory(SecretKeyFactorySpi keyFacSpi,
                           Provider provider,
                           String algorithm)
Method Detail

getAlgorithm

public final String getAlgorithm()

getProvider

public final Provider getProvider()

getInstance

public static final SecretKeyFactory getInstance(String algorithm)
                                          throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getInstance

public static final SecretKeyFactory getInstance(String algorithm,
                                                 String provider)
                                          throws NoSuchAlgorithmException,
                                                 NoSuchProviderException
Throws:
NoSuchAlgorithmException
NoSuchProviderException

getInstance

public static final SecretKeyFactory getInstance(String algorithm,
                                                 Provider provider)
                                          throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

generateSecret

public final SecretKey generateSecret(KeySpec keySpec)
                               throws InvalidKeySpecException
Throws:
InvalidKeySpecException

getKeySpec

public final KeySpec getKeySpec(SecretKey key,
                                Class keySpec)
                         throws InvalidKeySpecException
Throws:
InvalidKeySpecException

translateKey

public final SecretKey translateKey(SecretKey key)
                             throws InvalidKeyException
Throws:
InvalidKeyException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature