FileDocCategorySizeDatePackage
SignatureAlgorithmSpi.javaAPI DocJava SE 6 API6218Tue Jun 10 00:23:00 BST 2008com.sun.org.apache.xml.internal.security.algorithms

SignatureAlgorithmSpi

public abstract class SignatureAlgorithmSpi extends Object
author
$Author: raul $

Fields Summary
static Logger
log
{@link java.util.logging} logging facility
Document
_doc
Field _doc
Element
_constructionElement
Field _constructionElement
Constructors Summary
Methods Summary
protected voidengineGetContextFromElement(org.w3c.dom.Element element)
Method engineGetContextFromElement

param
element


           
       
      this._constructionElement = element;
   
protected abstract java.lang.StringengineGetJCEAlgorithmString()
Proxy method for {@link java.security.Signature#getAlgorithm} which is executed on the internal {@link java.security.Signature} object.

return
the result of the {@link java.security.Signature#getAlgorithm} method

protected abstract java.lang.StringengineGetJCEProviderName()
Method engineGetJCEProviderName

return
the JCE ProviderName

protected abstract java.lang.StringengineGetURI()
Returns the URI representation of Transformation algorithm

return
the URI representation of Transformation algorithm

protected abstract voidengineInitSign(java.security.Key signingKey)
Proxy method for {@link java.security.Signature#initSign(java.security.PrivateKey)} which is executed on the internal {@link java.security.Signature} object.

param
signingKey
throws
XMLSignatureException if this method is called on a MAC

protected abstract voidengineInitSign(java.security.Key signingKey, java.security.SecureRandom secureRandom)
Proxy method for {@link java.security.Signature#initSign(java.security.PrivateKey, java.security.SecureRandom)} which is executed on the internal {@link java.security.Signature} object.

param
signingKey
param
secureRandom
throws
XMLSignatureException if this method is called on a MAC

protected abstract voidengineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
Proxy method for {@link javax.crypto.Mac} which is executed on the internal {@link javax.crypto.Mac#init(Key)} object.

param
signingKey
param
algorithmParameterSpec
throws
XMLSignatureException if this method is called on a Signature

protected abstract voidengineInitVerify(java.security.Key verificationKey)
Method engineInitVerify

param
verificationKey
throws
XMLSignatureException

protected voidengineSetDocument(org.w3c.dom.Document doc)
Method engineSetDocument

param
doc


           
       
      this._doc = doc;
   
protected abstract voidengineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLength

param
HMACOutputLength
throws
XMLSignatureException

protected abstract voidengineSetParameter(java.security.spec.AlgorithmParameterSpec params)
Proxy method for {@link java.security.Signature#setParameter(java.security.spec.AlgorithmParameterSpec)} which is executed on the internal {@link java.security.Signature} object.

param
params
throws
XMLSignatureException

protected abstract byte[]engineSign()
Proxy method for {@link java.security.Signature#sign()} which is executed on the internal {@link java.security.Signature} object.

return
the result of the {@link java.security.Signature#sign()} method
throws
XMLSignatureException

protected abstract voidengineUpdate(byte[] input)
Proxy method for {@link java.security.Signature#update(byte[])} which is executed on the internal {@link java.security.Signature} object.

param
input
throws
XMLSignatureException

protected abstract voidengineUpdate(byte input)
Proxy method for {@link java.security.Signature#update(byte[])} which is executed on the internal {@link java.security.Signature} object.

param
input
throws
XMLSignatureException

protected abstract voidengineUpdate(byte[] buf, int offset, int len)
Proxy method for {@link java.security.Signature#update(byte[], int, int)} which is executed on the internal {@link java.security.Signature} object.

param
buf
param
offset
param
len
throws
XMLSignatureException

protected abstract booleanengineVerify(byte[] signature)
Proxy method for {@link java.security.Signature#verify(byte[])} which is executed on the internal {@link java.security.Signature} object.

param
signature
return
true if the signature is correct
throws
XMLSignatureException