java.security
Class KeyFactory

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


public class KeyFactory
extends Object


Constructor Summary
KeyFactory()
           
 
Method Summary
 PrivateKey generatePrivate(KeySpec keySpec)
           
 PublicKey generatePublic(KeySpec keySpec)
           
static KeyFactory getInstance(String algorithm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFactory

public KeyFactory()
Method Detail

generatePublic

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

generatePrivate

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

getInstance

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