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.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
p
protected BigInteger p
q
protected BigInteger q
g
protected BigInteger g
DSAParameters
public DSAParameters()
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