|
|||||||||
| 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.DSAKeyFactory
This class is a concrete implementaion of key factory for DSA.
| Constructor Summary | |
|---|---|
DSAKeyFactory()
Constructs a new instance of this class. |
|
| Method Summary | |
|---|---|
protected java.security.PrivateKey |
engineGeneratePrivate(java.security.spec.KeySpec keySpec)
Generates a private key for the given key specification. |
protected java.security.PublicKey |
engineGeneratePublic(java.security.spec.KeySpec keySpec)
Generates a public key for the given key specification. |
protected java.security.spec.KeySpec |
engineGetKeySpec(java.security.Key key,
java.lang.Class keySpec)
Answers a key specification for a given key. |
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 for the given key specification. |
protected java.security.PublicKey |
internalGeneratePublic(java.security.spec.KeySpec keySpec)
Generates a public key for the given key specification. |
protected java.security.spec.KeySpec |
internalGetKeySpec(java.security.Key key,
java.lang.Class keySpec)
Answers a key specification for a given key. |
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 DSAKeyFactory()
| Method Detail |
public boolean isFipsApproved()
AlgorithmStatusisFipsApproved in interface AlgorithmStatusAlgorithmStatus.isFipsApproved()
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePrivate in class java.security.KeyFactorySpikeySpec - KeySpec the key specification to be used for key generation.java.security.spec.InvalidKeySpecException - if the provided key specification is not appropriateFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected java.security.PrivateKey internalGeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
keySpec - KeySpec the key specification to be used for key generation.java.security.spec.InvalidKeySpecException - if the provided key specification is not appropriate
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePublic in class java.security.KeyFactorySpikeySpec - KeySpec the key specification to be used for key generation.java.security.spec.InvalidKeySpecException - if the provided key specification is not appropriateFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected java.security.PublicKey internalGeneratePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
keySpec - KeySpec the key specification to be used for key generation.java.security.spec.InvalidKeySpecException - if the provided key specification is not appropriate
protected java.security.spec.KeySpec engineGetKeySpec(java.security.Key key,
java.lang.Class keySpec)
throws java.security.spec.InvalidKeySpecException
engineGetKeySpec in class java.security.KeyFactorySpikey - Key the key for which the specification is to be computed.keySpec - Class the class of the result specificationkeySpec.java.security.spec.InvalidKeySpecException - if the provided key specification is not appropriateFIPSRuntimeException - 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 - Key the key for which the specification is to be computed.keySpec - Class the class of the result specificationkeySpec.java.security.spec.InvalidKeySpecException - if the provided key specification is not appropriate
protected java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
engineTranslateKey in class java.security.KeyFactorySpikey - 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 | ||||||||