加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090325101724/http://developer.android.com:80/reference/java/security/KeyFactory.html
public class

KeyFactory

extends Object
java.lang.Object
   ↳ java.security.KeyFactory

Summary

Protected Constructors
KeyFactory(KeyFactorySpi keyFacSpi, Provider provider, String algorithm)
Public Methods
final PrivateKey generatePrivate(KeySpec keySpec)
final PublicKey generatePublic(KeySpec keySpec)
final String getAlgorithm()
static KeyFactory getInstance(String algorithm, String provider)
static KeyFactory getInstance(String algorithm, Provider provider)
static KeyFactory getInstance(String algorithm)
final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec)
final Provider getProvider()
final Key translateKey(Key key)
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected KeyFactory (KeyFactorySpi keyFacSpi, Provider provider, String algorithm)

Public Methods

public final PrivateKey generatePrivate (KeySpec keySpec)

public final PublicKey generatePublic (KeySpec keySpec)

public final String getAlgorithm ()

public static KeyFactory getInstance (String algorithm, String provider)

public static KeyFactory getInstance (String algorithm, Provider provider)

public static KeyFactory getInstance (String algorithm)

public final T getKeySpec (Key key, Class<T> keySpec)

public final Provider getProvider ()

public final Key translateKey (Key key)