de.flexiprovider.core.dsa.interfaces
Class DSAKeyFactory

java.lang.Object
  |
  +--java.security.KeyFactorySpi
        |
        +--de.flexiprovider.api.keys.KeyFactory
              |
              +--de.flexiprovider.core.dsa.interfaces.DSAKeyFactory
Direct Known Subclasses:
DSAKeyFactory

public abstract class DSAKeyFactory
extends KeyFactory


Constructor Summary
DSAKeyFactory()
           
 
Method Summary
protected  java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
          JCA adapter for FlexiAPI method generatePrivate(): generate a private key object from the provided key specification (key material).
protected  java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
          JCA adapter for FlexiAPI method generatePublic(): generates a public key object from the provided key specification (key material).
 
Methods inherited from class de.flexiprovider.api.keys.KeyFactory
engineGetKeySpec, engineTranslateKey, generatePrivate, generatePublic, getKeySpec, translateKey
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSAKeyFactory

public DSAKeyFactory()
Method Detail

engineGeneratePublic

protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
                                                throws java.security.spec.InvalidKeySpecException
JCA adapter for FlexiAPI method generatePublic(): generates a public key object from the provided key specification (key material).
Overrides:
engineGeneratePublic in class KeyFactory
Parameters:
keySpec - the specification (key material) of the public key
Returns:
the public key
Throws:
java.security.spec.InvalidKeySpecException - if the given key specification is inappropriate for this key factory to produce a public key.

engineGeneratePrivate

protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
                                                  throws java.security.spec.InvalidKeySpecException
JCA adapter for FlexiAPI method generatePrivate(): generate a private key object from the provided key specification (key material).
Overrides:
engineGeneratePrivate in class KeyFactory
Parameters:
keySpec - the specification (key material) of the private key
Returns:
the private key
Throws:
java.security.spec.InvalidKeySpecException - if the given key specification is inappropriate for this key factory to produce a private key.