Build 1.0_r1(from source)

java.security
Class KeyFactory

java.lang.Object
  extended by java.security.KeyFactory

public class KeyFactory
extends Object


Constructor Summary
protected KeyFactory(KeyFactorySpi keyFacSpi, Provider provider, String algorithm)
           
 
Method Summary
 PrivateKey generatePrivate(KeySpec keySpec)
           
 PublicKey generatePublic(KeySpec keySpec)
           
 String getAlgorithm()
           
static KeyFactory getInstance(String algorithm)
           
static KeyFactory getInstance(String algorithm, Provider provider)
           
static KeyFactory getInstance(String algorithm, String provider)
           
<T extends KeySpec>
T
getKeySpec(Key key, Class<T> keySpec)
           
 Provider getProvider()
           
 Key translateKey(Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFactory

protected KeyFactory(KeyFactorySpi keyFacSpi,
                     Provider provider,
                     String algorithm)
Method Detail

getInstance

public static KeyFactory getInstance(String algorithm)
                              throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getInstance

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

getInstance

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

getProvider

public final Provider getProvider()

getAlgorithm

public final String getAlgorithm()

generatePublic

public final PublicKey generatePublic(KeySpec keySpec)
                               throws InvalidKeySpecException
Throws:
InvalidKeySpecException

generatePrivate

public final PrivateKey generatePrivate(KeySpec keySpec)
                                 throws InvalidKeySpecException
Throws:
InvalidKeySpecException

getKeySpec

public final <T extends KeySpec> T getKeySpec(Key key,
                                              Class<T> keySpec)
                                   throws InvalidKeySpecException
Throws:
InvalidKeySpecException

translateKey

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature