com.ibm.crypto.fips.provider
Class DSAParameters
- java.lang.Object
java.security.AlgorithmParametersSpi
com.ibm.crypto.fips.provider.DSAParameters
All implemented interfaces:
- public class DSAParameters
- extends java.security.AlgorithmParametersSpi
- implements AlgorithmStatus
Version:
1.00, 07/20/99
Author:
Joyce Leung
Field Summary
Modifier and Type | Field and Description |
---|---|
|
g
|
|
p
|
|
q
|
Constructor Summary
Constructor and Description |
---|
DSAParameters()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
engineGetEncoded()
Returns the parameters in encoded bytes.
|
|
engineGetEncoded(java.lang.String encodingMethod)
Returns the parameters in encoded bytes with encoding
method specified.
|
|
engineGetParameterSpec(java.lang.Class paramSpec)
Return the parameter spec used by this parameter instance.
|
|
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initialize the DSAParameters by a DSAParameterSpec
|
|
engineInit(byte[] params)
Initialize the DSAParameters by encoded bytes
|
|
engineInit(byte[] params,java.lang.String decodingMethod)
Initialize the DSAParameters by encoded bytes with the specified
decoding method.
|
|
engineToString()
|
|
internalGetEncoded()
Returns the parameters in encoded bytes.
|
|
internalGetEncoded(java.lang.String encodingMethod)
Returns the parameters in encoded bytes with encoding
method specified.
|
|
internalGetParameterSpec(java.lang.Class paramSpec)
Return the parameter spec used by this parameter instance.
|
|
internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initialize the DSAParameters by a DSAParameterSpec
|
|
internalInit(byte[] params)
Initialize the DSAParameters by encoded bytes
|
|
internalInit(byte[] params,java.lang.String decodingMethod)
Initialize the DSAParameters by encoded bytes with the specified
decoding method.
|
|
internalToString()
|
|
isFipsApproved()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
p
- protected java.math.BigInteger p
q
- protected java.math.BigInteger q
g
- protected java.math.BigInteger g
Constructor Detail
DSAParameters
- public DSAParameters()
Method Detail
isFipsApproved
- public boolean isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified
Specified by:
isFipsApproved
in interface AlgorithmStatus
See Also:
engineInit
- protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
- throws java.security.spec.InvalidParameterSpecException
Initialize the DSAParameters by a DSAParameterSpec
Specified by:
engineInit
in class java.security.AlgorithmParametersSpi
Parameters:
paramSpec
- the DSA algorithm parameter spec for this instance. Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false. java.security.spec.InvalidParameterSpecException
internalInit
- protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
- throws java.security.spec.InvalidParameterSpecException
Initialize the DSAParameters by a DSAParameterSpec
Parameters:
paramSpec
- the DSA algorithm parameter spec for this instance. Throws:
java.security.spec.InvalidParameterSpecException
engineInit
- protected void engineInit(byte[] params)
- throws java.io.IOException
Initialize the DSAParameters by encoded bytes
Specified by:
engineInit
in class java.security.AlgorithmParametersSpi
Parameters:
params
- the encoded bytes of the parameters. Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false. java.io.IOException
internalInit
- protected void internalInit(byte[] params)
- throws java.io.IOException
Initialize the DSAParameters by encoded bytes
Parameters:
params
- the encoded bytes of the parameters. Throws:
java.io.IOException
engineInit
- protected void engineInit(byte[] params,
- java.lang.String decodingMethod)
- throws java.io.IOException
Initialize the DSAParameters by encoded bytes with the specified
decoding method.
Specified by:
engineInit
in class java.security.AlgorithmParametersSpi
Parameters:
params
- the encoded bytes of the parameters. decodingMethod
- the decoding method to be used. Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false. java.io.IOException
internalInit
- protected void internalInit(byte[] params,
- java.lang.String decodingMethod)
- throws java.io.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:
java.io.IOException
engineGetParameterSpec
- protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec( java.lang.Class paramSpec)
- throws java.security.spec.InvalidParameterSpecException
Return the parameter spec used by this parameter instance.
Specified by:
engineGetParameterSpec
in class java.security.AlgorithmParametersSpi
Parameters:
paramSpec
- the parameter spec class to be returned Returns:
AlgorithmParameterSpec the newly generated parameterSpec
Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false. java.security.spec.InvalidParameterSpecException
internalGetParameterSpec
- protected java.security.spec.AlgorithmParameterSpec internalGetParameterSpec( java.lang.Class paramSpec)
- throws java.security.spec.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:
java.security.spec.InvalidParameterSpecException
engineGetEncoded
- protected byte[] engineGetEncoded( )
- throws java.io.IOException
Returns the parameters in encoded bytes.
Specified by:
engineGetEncoded
in class java.security.AlgorithmParametersSpi
Returns:
byte[] the encoded parameters
Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false. java.io.IOException
internalGetEncoded
- protected byte[] internalGetEncoded( )
- throws java.io.IOException
Returns the parameters in encoded bytes.
Returns:
byte[] the encoded parameters
Throws:
java.io.IOException
engineGetEncoded
- protected byte[] engineGetEncoded( java.lang.String encodingMethod)
- throws java.io.IOException
Returns the parameters in encoded bytes with encoding
method specified.
Specified by:
engineGetEncoded
in class java.security.AlgorithmParametersSpi
Returns:
byte[] encoded parameters.
Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false. java.io.IOException
internalGetEncoded
- protected byte[] internalGetEncoded( java.lang.String encodingMethod)
- throws java.io.IOException
Returns the parameters in encoded bytes with encoding
method specified.
Returns:
byte[] encoded parameters.
Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false. java.io.IOException
engineToString
- protected java.lang.String engineToString( )
Specified by:
engineToString
in class java.security.AlgorithmParametersSpi
internalToString
- protected java.lang.String internalToString( )
AlgorithmStatus