public class DSAKeyFactory
extends java.security.KeyFactorySpi
| Constructor and Description |
|---|
DSAKeyFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected java.security.PrivateKey |
engineGeneratePrivate(java.security.spec.KeySpec keySpec)
Generates a private key object from the provided key specification
(key material).
|
protected java.security.PublicKey |
engineGeneratePublic(java.security.spec.KeySpec keySpec)
Generates a public key object from the provided key specification
(key material).
|
protected <T extends java.security.spec.KeySpec> |
engineGetKeySpec(java.security.Key key,
java.lang.Class<T> keySpec)
Returns a specification (key material) of the given key object
in the requested format.
|
protected java.security.Key |
engineTranslateKey(java.security.Key key)
Translates a key object, whose provider may be unknown or potentially
untrusted, into a corresponding key object of this key factory.
|
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePublic in class java.security.KeyFactorySpikeySpec - the specification (key material) of the public keyjava.security.spec.InvalidKeySpecException - if the given key specification
is inappropriate for this key factory to produce a public key.protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePrivate in class java.security.KeyFactorySpikeySpec - the specification (key material) of the private keyjava.security.spec.InvalidKeySpecException - if the given key specification
is inappropriate for this key factory to produce a private key.protected <T extends java.security.spec.KeySpec> T engineGetKeySpec(java.security.Key key,
java.lang.Class<T> keySpec)
throws java.security.spec.InvalidKeySpecException
engineGetKeySpec in class java.security.KeyFactorySpikey - the keykeySpec - the requested format in which the key material shall be
returnedjava.security.spec.InvalidKeySpecException - if the requested key specification is
inappropriate for the given key, or the given key cannot be processed
(e.g., the given key has an unrecognized algorithm or format).protected java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
engineTranslateKey in class java.security.KeyFactorySpikey - the key whose provider is unknown or untrustedjava.security.InvalidKeyException - if the given key cannot be processed by
this key factory.