|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.crypto.SecretKeyFactorySpi | +--com.ibm.crypto.fips.provider.DESedeKeyFactory
This class implements the DES-EDE key factory of the IBMJCEFIPS provider.
Constructor Summary | |
---|---|
DESedeKeyFactory()
Verify the JCE framework in the constructor. |
Method Summary | |
---|---|
protected javax.crypto.SecretKey |
engineGenerateSecret(java.security.spec.KeySpec keySpec)
Generates a SecretKey object from the provided key
specification (key material). |
protected java.security.spec.KeySpec |
engineGetKeySpec(javax.crypto.SecretKey key,
java.lang.Class keySpec)
Returns a specification (key material) of the given key in the requested format. |
protected javax.crypto.SecretKey |
engineTranslateKey(javax.crypto.SecretKey key)
This action is not allowed in this provider. |
protected javax.crypto.SecretKey |
internalGenerateSecret(java.security.spec.KeySpec keySpec)
Generates a SecretKey object from the provided key
specification (key material). |
protected java.security.spec.KeySpec |
internalGetKeySpec(javax.crypto.SecretKey key,
java.lang.Class keySpec)
Returns a specification (key material) of the given key in the requested format. |
boolean |
isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DESedeKeyFactory()
java.lang.SecurityException
- if fails to verify
the JCE framework.Method Detail |
public boolean isFipsApproved()
AlgorithmStatus
isFipsApproved
in interface AlgorithmStatus
AlgorithmStatus.isFipsApproved()
protected javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
SecretKey
object from the provided key
specification (key material).engineGenerateSecret
in class javax.crypto.SecretKeyFactorySpi
keySpec
- the specification (key material) of the secret keyjava.security.spec.InvalidKeySpecException
- if the given key specification
is inappropriate for this key factory to produce a public key.FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected javax.crypto.SecretKey internalGenerateSecret(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
SecretKey
object from the provided key
specification (key material).keySpec
- the specification (key material) of the secret keyjava.security.spec.InvalidKeySpecException
- if the given key specification
is inappropriate for this key factory to produce a public key.protected java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey key, java.lang.Class keySpec) throws java.security.spec.InvalidKeySpecException
engineGetKeySpec
in class javax.crypto.SecretKeyFactorySpi
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).FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected java.security.spec.KeySpec internalGetKeySpec(javax.crypto.SecretKey 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 javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey key) throws java.security.InvalidKeyException
engineTranslateKey
in class javax.crypto.SecretKeyFactorySpi
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 |