|
|||||||||
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.RSAKeyFactory
This class implements the RSA key factory of the IBMJCE/IBMJCA provider.
Constructor Summary | |
---|---|
RSAKeyFactory()
|
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()
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 RSAKeyFactory()
Method Detail |
public boolean isFipsApproved()
AlgorithmStatus
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.FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.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.FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.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).FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.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 |