|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.KeyFactorySpi
com.ibm.crypto.provider.DHKeyFactory
public final class DHKeyFactory
This class implements the Diffie-Hellman key factory of the IBMJCE provider.
Constructor Summary | |
---|---|
DHKeyFactory()
Verify the JCE framework in the constructor. |
Method Summary | |
---|---|
protected PrivateKey |
engineGeneratePrivate(KeySpec keySpec)
Generates a private key object from the provided key specification (key material). |
protected PublicKey |
engineGeneratePublic(KeySpec keySpec)
Generates a public key object from the provided key specification (key material). |
protected KeySpec |
engineGetKeySpec(Key key,
Class keySpec)
Returns a specification (key material) of the given key object in the requested format. |
protected Key |
engineTranslateKey(Key key)
Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DHKeyFactory()
SecurityException
- if fails to verify
the JCE framework.Method Detail |
---|
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePublic
in class KeyFactorySpi
keySpec
- the specification (key material) of the public key
InvalidKeySpecException
- if the given key specification
is inappropriate for this key factory to produce a public key.protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePrivate
in class KeyFactorySpi
keySpec
- the specification (key material) of the private key
InvalidKeySpecException
- if the given key specification
is inappropriate for this key factory to produce a private key.protected KeySpec engineGetKeySpec(Key key, Class keySpec) throws InvalidKeySpecException
engineGetKeySpec
in class KeyFactorySpi
key
- the keykeySpec
- the requested format in which the key material shall be
returned
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 Key engineTranslateKey(Key key) throws InvalidKeyException
engineTranslateKey
in class KeyFactorySpi
key
- the key whose provider is unknown or untrusted
InvalidKeyException
- if the given key cannot be processed by
this key factory.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |