KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > security > KeyFactory

java.security
Class KeyFactory

java.lang.Object
  extended by java.security.KeyFactory
See Also:
Top Examples, Source Code, Key, PublicKey, PrivateKey, KeySpec, DSAPublicKeySpec, X509EncodedKeySpec

public final PrivateKey generatePrivate(KeySpec keySpec)
                                 throws InvalidKeySpecException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final PublicKey generatePublic(KeySpec keySpec)
                               throws InvalidKeySpecException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final String getAlgorithm()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static KeyFactory getInstance(String algorithm)
                              throws NoSuchAlgorithmException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static KeyFactory getInstance(String algorithm,
                                     String provider)
                              throws NoSuchAlgorithmException,
                                     NoSuchProviderException
See Also:
Provider, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static KeyFactory getInstance(String algorithm,
                                     Provider provider)
                              throws NoSuchAlgorithmException
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final <T extends KeySpec> T getKeySpec(Key key,
                                              Class<T> keySpec)
                                   throws InvalidKeySpecException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final Provider getProvider()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected KeyFactory(KeyFactorySpi keyFacSpi,
                     Provider provider,
                     String algorithm)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final Key translateKey(Key key)
                       throws InvalidKeyException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags