public abstract class SignatureAlgorithmSpi extends Object
Constructor and Description |
---|
SignatureAlgorithmSpi() |
Modifier and Type | Method and Description |
---|---|
protected void |
engineAddContextToElement(Element element) |
protected void |
engineGetContextFromElement(Element element)
Method engineGetContextFromElement
|
protected abstract String |
engineGetJCEAlgorithmString()
Proxy method for
Signature.getAlgorithm()
which is executed on the internal Signature object. |
protected abstract String |
engineGetJCEProviderName()
Method engineGetJCEProviderName
|
protected abstract String |
engineGetURI()
Returns the URI representation of
Transformation algorithm |
protected abstract void |
engineInitSign(Key signingKey)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
protected abstract void |
engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec)
Proxy method for
Mac
which is executed on the internal Mac.init(Key) object. |
protected abstract void |
engineInitSign(Key signingKey,
SecureRandom secureRandom)
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature object. |
protected static void |
engineInitSign(Key privateKey,
SecureRandom secureRandom,
Signature signatureAlgorithm) |
protected abstract void |
engineInitVerify(Key verificationKey)
Method engineInitVerify
|
protected static void |
engineInitVerify(Key publicKey,
Signature signatureAlgorithm) |
protected abstract void |
engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLength
|
protected abstract void |
engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected abstract byte[] |
engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected abstract void |
engineUpdate(byte input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected abstract void |
engineUpdate(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected abstract 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 abstract boolean |
engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
protected abstract String engineGetURI()
Transformation algorithm
Transformation algorithm
protected abstract String engineGetJCEAlgorithmString()
Signature.getAlgorithm()
which is executed on the internal Signature
object.Signature.getAlgorithm()
methodprotected abstract String engineGetJCEProviderName()
protected abstract void engineUpdate(byte[] input) throws XMLSignatureException
Signature.update(byte[])
which is executed on the internal Signature
object.input
- XMLSignatureException
protected abstract void engineUpdate(byte input) throws XMLSignatureException
Signature.update(byte[])
which is executed on the internal Signature
object.input
- XMLSignatureException
protected abstract void engineUpdate(byte[] buf, int offset, int len) throws XMLSignatureException
Signature.update(byte[], int, int)
which is executed on the internal Signature
object.buf
- offset
- len
- XMLSignatureException
protected abstract void engineInitSign(Key signingKey) throws XMLSignatureException
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature
object.signingKey
- XMLSignatureException
- if this method is called on a MACprotected abstract void engineInitSign(Key signingKey, SecureRandom secureRandom) throws XMLSignatureException
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature
object.signingKey
- secureRandom
- XMLSignatureException
- if this method is called on a MACprotected abstract void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureException
Mac
which is executed on the internal Mac.init(Key)
object.signingKey
- algorithmParameterSpec
- XMLSignatureException
- if this method is called on a Signatureprotected abstract byte[] engineSign() throws XMLSignatureException
Signature.sign()
which is executed on the internal Signature
object.Signature.sign()
methodXMLSignatureException
protected abstract void engineInitVerify(Key verificationKey) throws XMLSignatureException
verificationKey
- XMLSignatureException
protected abstract boolean engineVerify(byte[] signature) throws XMLSignatureException
Signature.verify(byte[])
which is executed on the internal Signature
object.signature
- XMLSignatureException
protected abstract void engineSetParameter(AlgorithmParameterSpec params) throws XMLSignatureException
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature
object.params
- XMLSignatureException
protected void engineGetContextFromElement(Element element) throws XMLSignatureException
element
- XMLSignatureException
protected void engineAddContextToElement(Element element) throws XMLSignatureException
XMLSignatureException
protected abstract void engineSetHMACOutputLength(int HMACOutputLength) throws XMLSignatureException
HMACOutputLength
- XMLSignatureException
protected static void engineInitVerify(Key publicKey, Signature signatureAlgorithm) throws XMLSignatureException
XMLSignatureException
protected static void engineInitSign(Key privateKey, SecureRandom secureRandom, Signature signatureAlgorithm) throws XMLSignatureException
XMLSignatureException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.