Class SignatureAlgorithmSpi
- java.lang.Object
-
- org.apache.xml.security.algorithms.SignatureAlgorithmSpi
-
public abstract class SignatureAlgorithmSpi extends java.lang.Object- Author:
- $Author$
-
-
Constructor Summary
Constructors Constructor Description SignatureAlgorithmSpi()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidengineGetContextFromElement(org.w3c.dom.Element element)Method engineGetContextFromElementprotected abstract java.lang.StringengineGetJCEAlgorithmString()Proxy method forSignature.getAlgorithm()which is executed on the internalSignatureobject.protected abstract java.lang.StringengineGetJCEProviderName()Method engineGetJCEProviderNameprotected abstract java.lang.StringengineGetURI()Returns the URI representation ofTransformation algorithmprotected abstract voidengineInitSign(java.security.Key signingKey)Proxy method forSignature.initSign(java.security.PrivateKey)which is executed on the internalSignatureobject.protected abstract voidengineInitSign(java.security.Key signingKey, java.security.SecureRandom secureRandom)Proxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)which is executed on the internalSignatureobject.protected abstract voidengineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)Proxy method forMacwhich is executed on the internalMac.init(Key)object.protected abstract voidengineInitVerify(java.security.Key verificationKey)Method engineInitVerifyprotected voidengineSetDocument(org.w3c.dom.Document doc)Method engineSetDocumentprotected abstract voidengineSetHMACOutputLength(int HMACOutputLength)Method engineSetHMACOutputLengthprotected abstract voidengineSetParameter(java.security.spec.AlgorithmParameterSpec params)Proxy method forSignature.setParameter(java.security.spec.AlgorithmParameterSpec)which is executed on the internalSignatureobject.protected abstract byte[]engineSign()Proxy method forSignature.sign()which is executed on the internalSignatureobject.protected abstract voidengineUpdate(byte input)Proxy method forSignature.update(byte[])which is executed on the internalSignatureobject.protected abstract voidengineUpdate(byte[] input)Proxy method forSignature.update(byte[])which is executed on the internalSignatureobject.protected abstract voidengineUpdate(byte[] buf, int offset, int len)Proxy method forSignature.update(byte[], int, int)which is executed on the internalSignatureobject.protected abstract booleanengineVerify(byte[] signature)Proxy method forSignature.verify(byte[])which is executed on the internalSignatureobject.
-
-
-
Method Detail
-
engineGetURI
protected abstract java.lang.String engineGetURI()
Returns the URI representation ofTransformation algorithm- Returns:
- the URI representation of
Transformation algorithm
-
engineGetJCEAlgorithmString
protected abstract java.lang.String engineGetJCEAlgorithmString()
Proxy method forSignature.getAlgorithm()which is executed on the internalSignatureobject.- Returns:
- the result of the
Signature.getAlgorithm()method
-
engineGetJCEProviderName
protected abstract java.lang.String engineGetJCEProviderName()
Method engineGetJCEProviderName- Returns:
- the JCE ProviderName
-
engineUpdate
protected abstract void engineUpdate(byte[] input) throws XMLSignatureExceptionProxy method forSignature.update(byte[])which is executed on the internalSignatureobject.- Parameters:
input-- Throws:
XMLSignatureException
-
engineUpdate
protected abstract void engineUpdate(byte input) throws XMLSignatureExceptionProxy method forSignature.update(byte[])which is executed on the internalSignatureobject.- Parameters:
input-- Throws:
XMLSignatureException
-
engineUpdate
protected abstract void engineUpdate(byte[] buf, int offset, int len) throws XMLSignatureExceptionProxy method forSignature.update(byte[], int, int)which is executed on the internalSignatureobject.- Parameters:
buf-offset-len-- Throws:
XMLSignatureException
-
engineInitSign
protected abstract void engineInitSign(java.security.Key signingKey) throws XMLSignatureExceptionProxy method forSignature.initSign(java.security.PrivateKey)which is executed on the internalSignatureobject.- Parameters:
signingKey-- Throws:
XMLSignatureException- if this method is called on a MAC
-
engineInitSign
protected abstract void engineInitSign(java.security.Key signingKey, java.security.SecureRandom secureRandom) throws XMLSignatureExceptionProxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)which is executed on the internalSignatureobject.- Parameters:
signingKey-secureRandom-- Throws:
XMLSignatureException- if this method is called on a MAC
-
engineInitSign
protected abstract void engineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureExceptionProxy method forMacwhich is executed on the internalMac.init(Key)object.- Parameters:
signingKey-algorithmParameterSpec-- Throws:
XMLSignatureException- if this method is called on a Signature
-
engineSign
protected abstract byte[] engineSign() throws XMLSignatureExceptionProxy method forSignature.sign()which is executed on the internalSignatureobject.- Returns:
- the result of the
Signature.sign()method - Throws:
XMLSignatureException
-
engineInitVerify
protected abstract void engineInitVerify(java.security.Key verificationKey) throws XMLSignatureExceptionMethod engineInitVerify- Parameters:
verificationKey-- Throws:
XMLSignatureException
-
engineVerify
protected abstract boolean engineVerify(byte[] signature) throws XMLSignatureExceptionProxy method forSignature.verify(byte[])which is executed on the internalSignatureobject.- Parameters:
signature-- Returns:
- true if the signature is correct
- Throws:
XMLSignatureException
-
engineSetParameter
protected abstract void engineSetParameter(java.security.spec.AlgorithmParameterSpec params) throws XMLSignatureExceptionProxy method forSignature.setParameter(java.security.spec.AlgorithmParameterSpec)which is executed on the internalSignatureobject.- Parameters:
params-- Throws:
XMLSignatureException
-
engineSetDocument
protected void engineSetDocument(org.w3c.dom.Document doc)
Method engineSetDocument- Parameters:
doc-
-
engineGetContextFromElement
protected void engineGetContextFromElement(org.w3c.dom.Element element)
Method engineGetContextFromElement- Parameters:
element-
-
engineSetHMACOutputLength
protected abstract void engineSetHMACOutputLength(int HMACOutputLength) throws XMLSignatureExceptionMethod engineSetHMACOutputLength- Parameters:
HMACOutputLength-- Throws:
XMLSignatureException
-
-