Package java.security
Class KeyFactory
- java.lang.Object
-
- java.security.KeyFactory
-
public class KeyFactory extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KeyFactory(KeyFactorySpi var0, Provider var1, String var2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrivateKey
generatePrivate(KeySpec var0)
PublicKey
generatePublic(KeySpec var0)
String
getAlgorithm()
static KeyFactory
getInstance(String var0)
static KeyFactory
getInstance(String var0, String var1)
KeySpec
getKeySpec(Key var0, Class var1)
Provider
getProvider()
Key
translateKey(Key var0)
-
-
-
Constructor Detail
-
KeyFactory
protected KeyFactory(KeyFactorySpi var0, Provider var1, String var2)
-
-
Method Detail
-
generatePrivate
public final PrivateKey generatePrivate(KeySpec var0) throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
-
generatePublic
public final PublicKey generatePublic(KeySpec var0) throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
-
getAlgorithm
public final String getAlgorithm()
-
getInstance
public static KeyFactory getInstance(String var0) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
getInstance
public static KeyFactory getInstance(String var0, String var1) throws NoSuchAlgorithmException, NoSuchProviderException
-
getKeySpec
public final KeySpec getKeySpec(Key var0, Class var1) throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
-
getProvider
public final Provider getProvider()
-
translateKey
public final Key translateKey(Key var0) throws InvalidKeyException
- Throws:
InvalidKeyException
-
-