Class AlgorithmParametersSpi
java.lang.Object
java.security.AlgorithmParametersSpi
org.bouncycastle.jcajce.provider.asymmetric.dsa.AlgorithmParametersSpi
public class AlgorithmParametersSpi extends AlgorithmParametersSpi
-
Constructor Summary
Constructors Constructor Description AlgorithmParametersSpi() -
Method Summary
Modifier and Type Method Description protected byte[]engineGetEncoded()Return the X.509 ASN.1 structure DSAParameter.protected byte[]engineGetEncoded(String format)Returns the parameters in the specified encoding format.protected AlgorithmParameterSpecengineGetParameterSpec(Class paramSpec)Returns theAlgorithmParameterSpecfor thisAlgorithmParametersSpi.protected voidengineInit(byte[] params)Initializes thisAlgorithmParametersSpiwith the specifiedbyte[]using the default decoding format for parameters.protected voidengineInit(byte[] params, String format)Initializes thisAlgorithmParametersSpiwith the specifiedbyte[]using the specified decoding format.protected voidengineInit(AlgorithmParameterSpec paramSpec)Initializes thisAlgorithmParametersSpiwith the specifiedAlgorithmParameterSpec.protected StringengineToString()Returns a string containing a concise, human-readable description of thisAlgorithmParametersSpi.protected booleanisASN1FormatString(String format)protected AlgorithmParameterSpeclocalEngineGetParameterSpec(Class paramSpec)
-
Constructor Details
-
AlgorithmParametersSpi
public AlgorithmParametersSpi()
-
-
Method Details
-
isASN1FormatString
-
engineGetParameterSpec
protected AlgorithmParameterSpec engineGetParameterSpec(Class paramSpec) throws InvalidParameterSpecExceptionDescription copied from class:AlgorithmParametersSpiReturns theAlgorithmParameterSpecfor thisAlgorithmParametersSpi.- Specified by:
engineGetParameterSpecin classAlgorithmParametersSpi- Parameters:
paramSpec- the type of the parameter specification in which this parameters should be converted.- Returns:
- the
AlgorithmParameterSpecfor thisAlgorithmParametersSpi. - Throws:
InvalidParameterSpecException- if thisAlgorithmParametersSpihas already been initialized, or if this parameters could not be converted to the specified class.
-
engineGetEncoded
protected byte[] engineGetEncoded()Return the X.509 ASN.1 structure DSAParameter.DSAParameter ::= SEQUENCE { prime INTEGER, -- p subprime INTEGER, -- q base INTEGER, -- g}- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Returns:
- the encoded parameters.
-
engineGetEncoded
Description copied from class:AlgorithmParametersSpiReturns the parameters in the specified encoding format.- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Parameters:
format- the name of the encoding format.- Returns:
- the encoded parameters.
-
localEngineGetParameterSpec
protected AlgorithmParameterSpec localEngineGetParameterSpec(Class paramSpec) throws InvalidParameterSpecException- Throws:
InvalidParameterSpecException
-
engineInit
Description copied from class:AlgorithmParametersSpiInitializes thisAlgorithmParametersSpiwith the specifiedAlgorithmParameterSpec.- Specified by:
engineInitin classAlgorithmParametersSpi- Parameters:
paramSpec- the parameter specification.- Throws:
InvalidParameterSpecException- if thisAlgorithmParametersSpihas already been initialized or the givenparamSpecis not appropriate for initializing thisAlgorithmParametersSpi.
-
engineInit
Description copied from class:AlgorithmParametersSpiInitializes thisAlgorithmParametersSpiwith the specifiedbyte[]using the default decoding format for parameters. The default encoding format is ASN.1.- Specified by:
engineInitin classAlgorithmParametersSpi- Parameters:
params- the encoded parameters.- Throws:
IOException- if thisAlgorithmParametersSpihas already been initialized, or the parameter could not be encoded.
-
engineInit
Description copied from class:AlgorithmParametersSpiInitializes thisAlgorithmParametersSpiwith the specifiedbyte[]using the specified decoding format.- Specified by:
engineInitin classAlgorithmParametersSpi- Parameters:
params- the encoded parameters.format- the name of the decoding format.- Throws:
IOException- if thisAlgorithmParametersSpihas already been initialized, or the parameter could not be encoded.
-
engineToString
Description copied from class:AlgorithmParametersSpiReturns a string containing a concise, human-readable description of thisAlgorithmParametersSpi.- Specified by:
engineToStringin classAlgorithmParametersSpi- Returns:
- a printable representation for this
AlgorithmParametersSpi.
-