com.ibm.crypto.provider
Class DSAParameters

java.lang.Object
  extended byjava.security.AlgorithmParametersSpi
      extended bycom.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

Parameters:
paramSpec - the DSA algorithm parameter spec for this instance.
Throws:
InvalidParameterSpecException

engineInit

protected void engineInit(byte[] params)
                   throws IOException
Initialize the DSAParameters by encoded bytes

Parameters:
params - the encoded bytes of the parameters.
Throws:
IOException

engineInit

protected void engineInit(byte[] params,
                          String decodingMethod)
                   throws IOException
Initialize the DSAParameters by encoded bytes with the specified decoding method.

Parameters:
params - the encoded bytes of the parameters.
decodingMethod - the decoding method to be used.
Throws:
IOException

engineGetParameterSpec

protected AlgorithmParameterSpec engineGetParameterSpec(Class paramSpec)
                                                 throws InvalidParameterSpecException
Return the parameter spec used by this parameter instance.

Parameters:
paramSpec - the parameter spec class to be returned
Returns:
AlgorithmParameterSpec the newly generated parameterSpec
Throws:
InvalidParameterSpecException

engineGetEncoded

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

Returns:
byte[] the encoded parameters
Throws:
IOException

engineGetEncoded

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

Returns:
byte[] encoded parameters.
Throws:
IOException

engineToString

protected String engineToString()