public class KeyFactory extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
KeyFactory(KeyFactorySpi var0,
Provider var1,
String var2) |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
generatePrivate(KeySpec var0) |
PublicKey |
generatePublic(KeySpec var0) |
String |
getAlgorithm() |
static KeyFactory |
getInstance(String var0) |
static KeyFactory |
getInstance(String var0,
Provider var1) |
static KeyFactory |
getInstance(String var0,
String var1) |
KeySpec |
getKeySpec(Key var0,
Class var1) |
Provider |
getProvider() |
Key |
translateKey(Key var0) |
protected KeyFactory(KeyFactorySpi var0, Provider var1, String var2)
public final PrivateKey generatePrivate(KeySpec var0) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic final PublicKey generatePublic(KeySpec var0) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic final String getAlgorithm()
public static KeyFactory getInstance(String var0) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic static KeyFactory getInstance(String var0, String var1) throws NoSuchAlgorithmException, NoSuchProviderException
public static KeyFactory getInstance(String var0, Provider var1) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic final KeySpec getKeySpec(Key var0, Class var1) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic final Provider getProvider()
public final Key translateKey(Key var0) throws InvalidKeyException
InvalidKeyException