Package java.security
Class KeyFactory
- java.lang.Object
-
- java.security.KeyFactory
-
public class KeyFactory extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyFactory(KeyFactorySpi var0, Provider var1, String var2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrivateKeygeneratePrivate(KeySpec var0)PublicKeygeneratePublic(KeySpec var0)StringgetAlgorithm()static KeyFactorygetInstance(String var0)static KeyFactorygetInstance(String var0, String var1)KeySpecgetKeySpec(Key var0, Class var1)ProvidergetProvider()KeytranslateKey(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
-
-