|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.KeyFactorySpi | +--com.ibm.crypto.fips.provider.DHKeyFactory
This class implements the Diffie-Hellman key factory of the IBMJCEFIPS provider.
Constructor Summary | |
---|---|
DHKeyFactory()
Verify the JCE framework in the constructor. |
Method Summary | |
---|---|
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 java.security.spec.KeySpec |
engineGetKeySpec(java.security.Key key,
java.lang.Class keySpec)
Returns a specification (key material) of the given key object in the requested format. |
protected java.security.Key |
engineTranslateKey(java.security.Key key)
This action is not allowed in this provider. |
protected java.security.PrivateKey |
internalGeneratePrivate(java.security.spec.KeySpec keySpec)
Generates a private key object from the provided key specification (key material). |
protected java.security.PublicKey |
internalGeneratePublic(java.security.spec.KeySpec keySpec)
Generates a public key object from the provided key specification (key material). |
protected java.security.spec.KeySpec |
internalGetKeySpec(java.security.Key key,
java.lang.Class keySpec)
Returns a specification (key material) of the given key object in the requested format. |
boolean |
isFipsApproved()
This function allows an application to verify the the algorithm is FIPS approved. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DHKeyFactory()
java.lang.SecurityException
- if fails to verify
the JCE framework.Method Detail |
public boolean isFipsApproved()
isFipsApproved
in interface AlgorithmStatus
AlgorithmStatus.isFipsApproved()
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
engineGeneratePublic
in class java.security.KeyFactorySpi
keySpec
- 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.PublicKey internalGeneratePublic(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
keySpec
- 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.KeyFactorySpi
keySpec
- 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 java.security.PrivateKey internalGeneratePrivate(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
keySpec
- 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 java.security.spec.KeySpec engineGetKeySpec(java.security.Key key, java.lang.Class keySpec) throws java.security.spec.InvalidKeySpecException
engineGetKeySpec
in class java.security.KeyFactorySpi
key
- 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.spec.KeySpec internalGetKeySpec(java.security.Key key, java.lang.Class keySpec) throws java.security.spec.InvalidKeySpecException
key
- 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.KeyFactorySpi
key
- the key.java.security.InvalidKeyException
- if the given key is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |