public abstract class SignatureECDSA extends SignatureAlgorithmSpi
Modifier and Type | Class and Description |
---|---|
static class |
SignatureECDSA.SignatureECDSARIPEMD160
Class SignatureECDSARIPEMD160
|
static class |
SignatureECDSA.SignatureECDSASHA1
Class SignatureECDSASHA1
|
static class |
SignatureECDSA.SignatureECDSASHA224
Class SignatureECDSASHA224
|
static class |
SignatureECDSA.SignatureECDSASHA256
Class SignatureECDSASHA256
|
static class |
SignatureECDSA.SignatureECDSASHA384
Class SignatureECDSASHA384
|
static class |
SignatureECDSA.SignatureECDSASHA512
Class SignatureECDSASHA512
|
Constructor and Description |
---|
SignatureECDSA()
Constructor SignatureRSA
|
SignatureECDSA(Provider provider) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
convertASN1toXMLDSIG(byte[] asn1Bytes)
Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value.
|
static byte[] |
convertXMLDSIGtoASN1(byte[] xmldsigBytes)
Converts a XML Signature ECDSA Value to an ASN.1 DSA value.
|
protected String |
engineGetJCEAlgorithmString()
Proxy method for
Signature.getAlgorithm()
which is executed on the internal Signature object. |
protected String |
engineGetJCEProviderName()
Method engineGetJCEProviderName
|
protected void |
engineInitSign(Key privateKey)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
protected void |
engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec)
Proxy method for
Mac
which is executed on the internal Mac.init(Key) object. |
protected void |
engineInitSign(Key privateKey,
SecureRandom secureRandom)
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature object. |
protected void |
engineInitVerify(Key publicKey)
Method engineInitVerify
|
protected void |
engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLength
|
protected void |
engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected byte[] |
engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected void |
engineUpdate(byte input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
engineUpdate(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
engineUpdate(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
protected boolean |
engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
engineAddContextToElement, engineGetContextFromElement, engineGetURI, engineInitSign, engineInitVerify
public SignatureECDSA() throws XMLSignatureException
XMLSignatureException
public SignatureECDSA(Provider provider) throws XMLSignatureException
XMLSignatureException
public static byte[] convertASN1toXMLDSIG(byte[] asn1Bytes) throws IOException
asn1Bytes
- IOException
public static byte[] convertXMLDSIGtoASN1(byte[] xmldsigBytes) throws IOException
xmldsigBytes
- IOException
protected void engineSetParameter(AlgorithmParameterSpec params) throws XMLSignatureException
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature
object.engineSetParameter
in class SignatureAlgorithmSpi
XMLSignatureException
protected boolean engineVerify(byte[] signature) throws XMLSignatureException
Signature.verify(byte[])
which is executed on the internal Signature
object.engineVerify
in class SignatureAlgorithmSpi
XMLSignatureException
protected void engineInitVerify(Key publicKey) throws XMLSignatureException
engineInitVerify
in class SignatureAlgorithmSpi
XMLSignatureException
protected byte[] engineSign() throws XMLSignatureException
Signature.sign()
which is executed on the internal Signature
object.engineSign
in class SignatureAlgorithmSpi
Signature.sign()
methodXMLSignatureException
protected void engineInitSign(Key privateKey, SecureRandom secureRandom) throws XMLSignatureException
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature
object.engineInitSign
in class SignatureAlgorithmSpi
XMLSignatureException
- if this method is called on a MACprotected void engineInitSign(Key privateKey) throws XMLSignatureException
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature
object.engineInitSign
in class SignatureAlgorithmSpi
XMLSignatureException
- if this method is called on a MACprotected void engineUpdate(byte[] input) throws XMLSignatureException
Signature.update(byte[])
which is executed on the internal Signature
object.engineUpdate
in class SignatureAlgorithmSpi
XMLSignatureException
protected void engineUpdate(byte input) throws XMLSignatureException
Signature.update(byte[])
which is executed on the internal Signature
object.engineUpdate
in class SignatureAlgorithmSpi
XMLSignatureException
protected void engineUpdate(byte[] buf, int offset, int len) throws XMLSignatureException
Signature.update(byte[], int, int)
which is executed on the internal Signature
object.engineUpdate
in class SignatureAlgorithmSpi
XMLSignatureException
protected String engineGetJCEAlgorithmString()
Signature.getAlgorithm()
which is executed on the internal Signature
object.engineGetJCEAlgorithmString
in class SignatureAlgorithmSpi
Signature.getAlgorithm()
methodprotected String engineGetJCEProviderName()
engineGetJCEProviderName
in class SignatureAlgorithmSpi
protected void engineSetHMACOutputLength(int HMACOutputLength) throws XMLSignatureException
engineSetHMACOutputLength
in class SignatureAlgorithmSpi
XMLSignatureException
protected void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureException
Mac
which is executed on the internal Mac.init(Key)
object.engineInitSign
in class SignatureAlgorithmSpi
XMLSignatureException
- if this method is called on a SignatureCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.