public final class EcdsaWithSpecifiedSignature extends EcdsaSignature
The following hash functions are supported:
This digital signature algorithm implementation requires parameters when initialized for signature generation. If algorithm parameters are not provided, a default set will automatically be used. The following algorithm parameter representations are supported:
This implementation calculates the hash internally, thus it is the message
itself (being signed or verified) that is passed in through the
update() API.
An instance of this algorithm can be obtained using the Java Cryptography
Architecture (JCA), by requesting a 'SPECIFIEDwithECDSA' digital signature
from the Entrust
cryptographic service provider. This can be done using the following call:
Signature.getInstance("SPECIFIEDwithECDSA", "Entrust");EcdsaWithSpecifiedParameterSpec,
EcdsaWithSpecifiedParameters,
EcdsaSignature| Constructor and Description |
|---|
EcdsaWithSpecifiedSignature()
The constructor; creates a new instance of the SPECIFIEDwithECDSA digital
signature algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertParametersValid(java.security.spec.AlgorithmParameterSpec params)
Checks the parameters to ensure that they are valid and appropriate for
this digital signature algorithm.
|
protected java.security.spec.AlgorithmParameterSpec |
generateDefaultParameters()
Returns a default set of parameters that are valid and appropriate for
this digital signature algorithm.
|
protected java.security.AlgorithmParameters |
toAlgorithmParameters(java.security.spec.AlgorithmParameterSpec paramSpec)
Converts algorithm parameters in transparent representation into their
opaque representation during a call to
engineGetParameters()
. |
getDigitalSignatureImplengineGetParameter, engineGetParameters, engineInitSign, engineInitSign, engineInitVerify, engineSetParameter, engineSetParameter, engineSign, engineSign, engineUpdate, engineUpdate, engineVerify, engineVerify, getDigest, getPrngpublic EcdsaWithSpecifiedSignature()
Applications should not use this constructor, instead the signature
algorithm should be requested from the appropriate JCA/JCE cryptographic
service provider as follows:
Signature.getInstance("SPECIFIEDwithECDSA", "Entrust").
protected java.security.spec.AlgorithmParameterSpec generateDefaultParameters()
DigitalSignature
This default implementation is only appropriate for algorithms that do
not support algorithm parameters; it always returns null.
For algorithms that do support algorithm parameters, this API must be
overridden to generate a valid and appropriate set of default algorithm
parameters. These parameters will automatically be used when parameters
are not provided through the engineSetParameter() API and
the algorithm is initialized for signature generation.
generateDefaultParameters in class DigitalSignaturenull if
this algorithm does not support parametersprotected void assertParametersValid(java.security.spec.AlgorithmParameterSpec params)
throws java.security.InvalidAlgorithmParameterException
DigitalSignature
This default implementation is only appropriate for algorithms that do
not support algorithm parameters; it throws an
InvalidAlgorithmParameterException indicating that
parameters are not supported when non-null parameters are provided. For
algorithms that do support algorithm parameters, this API must be
overridden to check that the parameters that were passed in are valid and
appropriate for the algorithm.
assertParametersValid in class DigitalSignatureparams - the parametersjava.security.InvalidAlgorithmParameterException - if the given parameters are inappropriate for this signature
algorithmprotected java.security.AlgorithmParameters toAlgorithmParameters(java.security.spec.AlgorithmParameterSpec paramSpec)
DigitalSignatureengineGetParameters()
.
This default implementation is only appropriate for algorithms that do
not support algorithm parameters; it always returns null.
For algorithms that do support algorithm parameters, this API must be
overridden to convert supported parameters in transparent representation
to opaque representation.
toAlgorithmParameters in class DigitalSignatureparamSpec - a transparent representation of the algorithm parametersnull if this algorithm does not support parameters