APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.security.ec

pack-priv abstract Class ECDSASignature

extends SignatureSpi
Class Inheritance
Known Direct Subclasses
sun.security.ec.ECDSASignature.RawECDSA, sun.security.ec.ECDSASignature.SHA1, sun.security.ec.ECDSASignature.SHA1inP1363Format, sun.security.ec.ECDSASignature.SHA224, sun.security.ec.ECDSASignature.SHA224inP1363Format, sun.security.ec.ECDSASignature.SHA256, sun.security.ec.ECDSASignature.SHA256inP1363Format, sun.security.ec.ECDSASignature.SHA384, sun.security.ec.ECDSASignature.SHA384inP1363Format, sun.security.ec.ECDSASignature.SHA512, sun.security.ec.ECDSASignature.SHA512inP1363Format, sun.security.ec.ECDSASignature.SHA3_224, sun.security.ec.ECDSASignature.SHA3_224inP1363Format, sun.security.ec.ECDSASignature.SHA3_256, sun.security.ec.ECDSASignature.SHA3_256inP1363Format, sun.security.ec.ECDSASignature.SHA3_384, sun.security.ec.ECDSASignature.SHA3_384inP1363Format, sun.security.ec.ECDSASignature.SHA3_512, sun.security.ec.ECDSASignature.SHA3_512inP1363Format
Imports
java.nio.ByteBuffer, java.security.*, java.security.interfaces.*, java.security.spec.*, java.util.Arrays, .Optional, sun.security.jca.JCAUtil, sun.security.util.*

ECDSA signature implementation. This class currently supports the following algorithm names: . "NONEwithECDSA" . "SHA1withECDSA" . "SHA224withECDSA" . "SHA256withECDSA" . "SHA384withECDSA" . "SHA512withECDSA" . "SHA3-224withECDSA" . "SHA3-256withECDSA" . "SHA3-384withECDSA" . "SHA3-512withECDSA" . "NONEwithECDSAinP1363Format" . "SHA1withECDSAinP1363Format" . "SHA224withECDSAinP1363Format" . "SHA256withECDSAinP1363Format" . "SHA384withECDSAinP1363Format" . "SHA512withECDSAinP1363Format" . "SHA3-224withECDSAinP1363Format" . "SHA3-256withECDSAinP1363Format" . "SHA3-384withECDSAinP1363Format" . "SHA3-512withECDSAinP1363Format"
Since
1.7

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
pack-priv static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
private final MessageDigest
private boolean
private final boolean
private ECPrivateKey
private ECPublicKey
private SecureRandom
Inherited from java.security.SignatureSpi:
appRandom

Constructor Summary

AccessConstructor and Description
pack-priv
ECDSASignature()

Constructs a new ECDSASignature.

pack-priv
ECDSASignature(boolean p1363Format)

Constructs a new ECDSASignature that will use the specified signature format.

pack-priv
ECDSASignature(String digestName)

Constructs a new ECDSASignature.

pack-priv
ECDSASignature(String digestName, boolean p1363Format)

Constructs a new ECDSASignature that will use the specified digest and signature format.

Method Summary

Modifier and TypeMethod and Description
protected Object
engineGetParameter(String param)

Implements abstract java.security.SignatureSpi.engineGetParameter.

Deprecated

Gets the value of the specified algorithm parameter.

protected AlgorithmParameters
engineGetParameters()

Overrides java.security.SignatureSpi.engineGetParameters.

Returns the parameters used with this Signature object.

protected void
engineInitSign(PrivateKey privateKey)

Implements abstract java.security.SignatureSpi.engineInitSign.

Initializes this Signature object with the specified private key for signing operations.

protected void
engineInitSign(PrivateKey privateKey, SecureRandom random)

Overrides java.security.SignatureSpi.engineInitSign.

Initializes this Signature object with the specified private key and source of randomness for signing operations.

protected void
engineInitVerify(PublicKey publicKey)

Implements abstract java.security.SignatureSpi.engineInitVerify.

Initializes this Signature object with the specified public key for verification operations.

protected void
engineSetParameter(String param, Object value)

Implements abstract java.security.SignatureSpi.engineSetParameter.

Deprecated

Sets the specified algorithm parameter to the specified value.

protected void
engineSetParameter(AlgorithmParameterSpec params)

Overrides java.security.SignatureSpi.engineSetParameter.

Initializes this Signature object with the specified parameter values.

protected byte[]
engineSign()

Implements abstract java.security.SignatureSpi.engineSign.

Returns the signature bytes of all the data updated so far.

protected void
engineUpdate(byte b)

Implements abstract java.security.SignatureSpi.engineUpdate.

Updates the data to be signed or verified using the specified byte.

protected void
engineUpdate(byte[] b, int off, int len)

Implements abstract java.security.SignatureSpi.engineUpdate.

Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset.

protected void
engineUpdate(ByteBuffer byteBuffer)

Overrides java.security.SignatureSpi.engineUpdate.

Updates the data to be signed or verified using the specified ByteBuffer.

protected boolean
engineVerify(byte[] signature)

Implements abstract java.security.SignatureSpi.engineVerify.

Verifies the passed-in signature.

protected byte[]
getDigestValue()

Returns the message digest value.

protected void
resetDigest()

Resets the message digest if needed.

private byte[]
signDigestImpl(ECDSAOperations ops, int seedBits, byte[] digest, ECPrivateKey priv, SecureRandom random)

Inherited from java.security.SignatureSpi:
cloneengineSignengineVerify