com.ibm.crypto.provider
Class DSAParameters

java.lang.Object
  |
  +--java.security.AlgorithmParametersSpi
        |
        +--com.ibm.crypto.provider.DSAParameters

public class DSAParameters
extends AlgorithmParametersSpi

This class implements Digital Signature Algorithm paremters specified by FIPS 186 standard.


Field Summary
protected  BigInteger g
           
protected  BigInteger p
           
protected  BigInteger q
           
 
Constructor Summary
DSAParameters()
           
 
Method Summary
protected  byte[] engineGetEncoded()
          Returns the parameters in encoded bytes.
protected  byte[] engineGetEncoded(String encodingMethod)
          Returns the parameters in encoded bytes with encoding method specified.
protected  AlgorithmParameterSpec engineGetParameterSpec(Class paramSpec)
          Return the parameter spec used by this parameter instance.
protected  void engineInit(AlgorithmParameterSpec paramSpec)
          Initialize the DSAParameters by a DSAParameterSpec
protected  void engineInit(byte[] params)
          Initialize the DSAParameters by encoded bytes
protected  void engineInit(byte[] params, String decodingMethod)
          Initialize the DSAParameters by encoded bytes with the specified decoding method.
protected  String engineToString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p

protected BigInteger p

q

protected BigInteger q

g

protected BigInteger g
Constructor Detail

DSAParameters

public DSAParameters()
Method Detail

engineInit

protected void engineInit(AlgorithmParameterSpec paramSpec)
                   throws InvalidParameterSpecException
Initialize the DSAParameters by a DSAParameterSpec
Overrides:
engineInit in class AlgorithmParametersSpi
Parameters:
paramSpec - the DSA algorithm parameter spec for this instance.

engineInit

protected void engineInit(byte[] params)
                   throws IOException
Initialize the DSAParameters by encoded bytes
Overrides:
engineInit in class AlgorithmParametersSpi
Parameters:
params - the encoded bytes of the parameters.

engineInit

protected void engineInit(byte[] params,
                          String decodingMethod)
                   throws IOException
Initialize the DSAParameters by encoded bytes with the specified decoding method.
Overrides:
engineInit in class AlgorithmParametersSpi
Parameters:
params - the encoded bytes of the parameters.
decodingMethod - the decoding method to be used.

engineGetParameterSpec

protected AlgorithmParameterSpec engineGetParameterSpec(Class paramSpec)
                                                 throws InvalidParameterSpecException
Return the parameter spec used by this parameter instance.
Overrides:
engineGetParameterSpec in class AlgorithmParametersSpi
Parameters:
paramSpec - the parameter spec class to be returned
Returns:
AlgorithmParameterSpec the newly generated parameterSpec

engineGetEncoded

protected byte[] engineGetEncoded()
                           throws IOException
Returns the parameters in encoded bytes.
Overrides:
engineGetEncoded in class AlgorithmParametersSpi
Returns:
byte[] the encoded parameters

engineGetEncoded

protected byte[] engineGetEncoded(String encodingMethod)
                           throws IOException
Returns the parameters in encoded bytes with encoding method specified.
Overrides:
engineGetEncoded in class AlgorithmParametersSpi
Returns:
byte[] encoded parameters.

engineToString

protected String engineToString()
Overrides:
engineToString in class AlgorithmParametersSpi