FileDocCategorySizeDatePackage
KeyFactorySpi.javaAPI DocAndroid 1.5 API3445Wed May 06 22:41:06 BST 2009java.security

KeyFactorySpi

public abstract class KeyFactorySpi extends Object
{@code KeyFactorySpi} is the Service Provider Interface (SPI) definition for {@link KeyFactory}.
see
KeyFactory
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
protected abstract java.security.PrivateKeyengineGeneratePrivate(java.security.spec.KeySpec keySpec)
Generates a instance of {@code PrivateKey} from the given key specification.

param
keySpec the specification of the private key.
return
the private key.
throws
InvalidKeySpecException if the specified {@code keySpec} is invalid.
since
Android 1.0

protected abstract java.security.PublicKeyengineGeneratePublic(java.security.spec.KeySpec keySpec)
Generates a instance of {@code PublicKey} from the given key specification.

param
keySpec the specification of the public key.
return
the public key.
throws
InvalidKeySpecException if the specified {@code keySpec} is invalid.
since
Android 1.0

protected abstract TengineGetKeySpec(java.security.Key key, java.lang.Class keySpec)
Returns the key specification for the specified key.

param
key the key from which the specification is requested.
param
keySpec the type of the requested {@code KeySpec}.
return
the key specification for the specified key.
throws
InvalidKeySpecException if the key can not be processed, or the requested requested {@code KeySpec} is inappropriate for the given key.
since
Android 1.0

protected abstract java.security.KeyengineTranslateKey(java.security.Key key)
Translates the given key into a key from this key factory.

param
key the key to translate.
return
the translated key.
throws
InvalidKeyException if the specified key can not be translated by this key factory.
since
Android 1.0