public final class EcdsaWithSpecifiedParameters
extends java.security.AlgorithmParametersSpi
For a detailed description of the values contained in a set of
SPECIFIEDwithECDSA algorithm parameters, refer to the documentation on the
corresponding transparent algorithm parameters representation
EcdsaWithSpecifiedParameterSpec
. To convert this opaque representation into a transparent representation
call getParameterSpec(EcdsaWithSpecifiedParameterSpec.class).
Finally, for parsing and encoding of this parameter specification, only the
'ASN.1' encoding is supported; by default the 'ASN.1' encoding is used.
EcdsaWithSpecifiedSignature,
EcdsaWithSpecifiedParameterSpec| Constructor and Description |
|---|
EcdsaWithSpecifiedParameters()
The constructor; creates a new instance of SPECIFIEDwithECDSA digital
signature algorithm parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
engineGetEncoded()
Returns the parameters in their primary encoding format.
|
protected byte[] |
engineGetEncoded(java.lang.String format)
Returns the parameters encoded in the specified format.
|
protected <T extends java.security.spec.AlgorithmParameterSpec> |
engineGetParameterSpec(java.lang.Class<T> paramSpec)
Returns a (transparent) specification of this parameters object.
|
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initializes this parameters object using the parameters specified in
paramSpec. |
protected void |
engineInit(byte[] params)
Imports the specified parameters and decodes them according to the
primary decoding format for parameters.
|
protected void |
engineInit(byte[] params,
java.lang.String format)
Imports the parameters from
params and decodes them
according to the specified decoding format. |
protected java.lang.String |
engineToString()
Returns a formatted string describing the parameters.
|
public EcdsaWithSpecifiedParameters()
This should never be invoked manually. It only exists so that the Java Cryptography Architecture can create new instances of SPECIFIEDwithECDSA digital signature algorithm parameters.
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
throws java.security.spec.InvalidParameterSpecException
paramSpec.engineInit in class java.security.AlgorithmParametersSpiparamSpec - the parameter specification.java.security.spec.InvalidParameterSpecException - if the given parameter specification is inappropriate for
the initialization of this parameter object.protected void engineInit(byte[] params)
throws java.io.IOException
The primary decoding format for parameters is ASN.1.
engineInit in class java.security.AlgorithmParametersSpiparams - the encoded parameters.java.io.IOException - on decoding errorsprotected void engineInit(byte[] params,
java.lang.String format)
throws java.io.IOException
params and decodes them
according to the specified decoding format.
If format is null, the primary decoding format for
parameters is used. The primary decoding format is ASN.1.
engineInit in class java.security.AlgorithmParametersSpiparams - the encoded parameters.format - the name of the decoding format.java.io.IOException - on decoding errorsprotected <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec(java.lang.Class<T> paramSpec)
throws java.security.spec.InvalidParameterSpecException
engineGetParameterSpec in class java.security.AlgorithmParametersSpiparamSpec - the specification class in which the parameters should be
returned.java.security.spec.InvalidParameterSpecException - if the requested parameter specification is inappropriate
for this parameter object.protected byte[] engineGetEncoded()
throws java.io.IOException
The primary encoding format for parameters is ASN.1.
engineGetEncoded in class java.security.AlgorithmParametersSpijava.io.IOException - on encoding errors.protected byte[] engineGetEncoded(java.lang.String format)
throws java.io.IOException
If format is null, the primary encoding format for
parameters is used. The primary encoding format is ASN.1.
engineGetEncoded in class java.security.AlgorithmParametersSpiformat - the name of the encoding format.java.io.IOException - on encoding errors.protected java.lang.String engineToString()
engineToString in class java.security.AlgorithmParametersSpi