java.lang.Object
java.security.AlgorithmParametersSpi
com.ibm.crypto.hdwrCCA.provider.DSAParameters
This class implements Digital Signature Algorithm parameters
specified by FIPS 186 standard.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
Returns the parameters in encoded bytes.protected byte[]
engineGetEncoded
(String encodingMethod) Returns the parameters in encoded bytes with encoding method specified.protected <T extends AlgorithmParameterSpec>
TengineGetParameterSpec
(Class<T> paramSpec) Return the parameter spec used by this parameter instance.protected void
engineInit
(byte[] params) Initialize the DSAParameters by using encoded bytes.protected void
engineInit
(byte[] params, String decodingMethod) Initialize the DSAParameters by encoded bytes with the specified decoding method.protected void
engineInit
(AlgorithmParameterSpec paramSpec) Initialize the DSAParameters by use of a DSAParameterSpec object.protected String
Returns a human readable string describing the parameters.
-
Field Details
-
p
-
q
-
g
-
-
Constructor Details
-
DSAParameters
public DSAParameters()Constructs a new instance of this class
-
-
Method Details
-
engineInit
Initialize the DSAParameters by use of a DSAParameterSpec object.- Specified by:
engineInit
in classAlgorithmParametersSpi
- Parameters:
paramSpec
- the DSA algorithm parameter spec for this instance.- Throws:
InvalidParameterSpecException
- occurs when the paramSpec parameter is not an instance of DSAParameterSpec.
-
engineInit
Initialize the DSAParameters by using encoded bytes.- Specified by:
engineInit
in classAlgorithmParametersSpi
- Parameters:
params
- the encoded bytes of the parameters.- Throws:
IOException
- occurs when the encoding can not be correctly decoded.
-
engineInit
Initialize the DSAParameters by encoded bytes with the specified decoding method.- Specified by:
engineInit
in classAlgorithmParametersSpi
- Parameters:
params
- the encoded bytes of the parameters.decodingMethod
- the decoding method to be used (has no real function).- Throws:
IOException
- occurs when the encoding can not be correctly decoded.
-
engineGetParameterSpec
protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException Return the parameter spec used by this parameter instance.- Specified by:
engineGetParameterSpec
in classAlgorithmParametersSpi
- Parameters:
paramSpec
- the parameter spec class to be returned.- Returns:
- AlgorithmParameterSpec the newly generated parameterSpec.
- Throws:
InvalidParameterSpecException
- occurs when a DSAParameterSpec object can not be created.
-
engineGetEncoded
Returns the parameters in encoded bytes.- Specified by:
engineGetEncoded
in classAlgorithmParametersSpi
- Returns:
- byte[] the encoded parameters.
- Throws:
IOException
- occurs if we have an IO problem.
-
engineGetEncoded
Returns the parameters in encoded bytes with encoding method specified. This call does the samething asengineGetEncoded()
.- Specified by:
engineGetEncoded
in classAlgorithmParametersSpi
- Parameters:
encodingMethod
- The parameter is not really used.- Returns:
- byte[] encoded parameters.
- Throws:
IOException
- occurs if we have an IO problem.
-
engineToString
Returns a human readable string describing the parameters.- Specified by:
engineToString
in classAlgorithmParametersSpi
- Returns:
- Returns a human readable string describing the parameters.
-