java.security
Class KeyFactory
java.lang.Object
java.security.KeyFactory
- public class KeyFactory
- extends java.lang.Object
Constructor Summary |
protected |
KeyFactory(KeyFactorySpi keyFacSpi,
java.security.Provider provider,
java.lang.String algorithm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyFactory
protected KeyFactory(KeyFactorySpi keyFacSpi,
java.security.Provider provider,
java.lang.String algorithm)
generatePrivate
public final java.security.PrivateKey generatePrivate(KeySpec keySpec)
throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
generatePublic
public final java.security.PublicKey generatePublic(KeySpec keySpec)
throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
getAlgorithm
public final java.lang.String getAlgorithm()
getInstance
public static KeyFactory getInstance(java.lang.String algorithm)
throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
getInstance
public static KeyFactory getInstance(java.lang.String algorithm,
java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException
- Throws:
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
getKeySpec
public final KeySpec getKeySpec(java.security.Key key,
java.lang.Class keySpec)
throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
getProvider
public final java.security.Provider getProvider()
translateKey
public final java.security.Key translateKey(java.security.Key key)
throws java.security.InvalidKeyException
- Throws:
java.security.InvalidKeyException