com.ibm.crypto.provider
Class DSAParameters

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

Specified by:
engineInit in class AlgorithmParametersSpi
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

Specified by:
engineInit in class AlgorithmParametersSpi
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.

Specified by:
engineInit in class AlgorithmParametersSpi
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.

Specified by:
engineGetParameterSpec in class AlgorithmParametersSpi
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.

Specified by:
engineGetEncoded in class AlgorithmParametersSpi
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.

Specified by:
engineGetEncoded in class AlgorithmParametersSpi
Returns:
byte[] encoded parameters.
Throws:
IOException

engineToString

protected String engineToString()
Specified by:
engineToString in class AlgorithmParametersSpi