APIdia Launch Partner
Top Constructors Methods
com.sun.org.apache.xml.internal.security.algorithms

public abstract Class SignatureAlgorithmSpi

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac, com.sun.org.apache.xml.internal.security.algorithms.implementations.SignatureBaseRSA, com.sun.org.apache.xml.internal.security.algorithms.implementations.SignatureDSA, com.sun.org.apache.xml.internal.security.algorithms.implementations.SignatureECDSA, com.sun.org.apache.xml.internal.security.algorithms.implementations.SignatureEDDSA
Imports
java.security.InvalidKeyException, .Key, .PrivateKey, .PublicKey, .SecureRandom, .Signature, java.security.spec.AlgorithmParameterSpec, com.sun.org.apache.xml.internal.security.signature.XMLSignatureException, org.w3c.dom.Element

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
engineGetContextFromElement(Element element)

Method engineGetContextFromElement

protected abstract String

Returns:

the result of the java.security.Signature#getAlgorithm method
engineGetJCEAlgorithmString
()

Proxy method for java.security.Signature#getAlgorithm which is executed on the internal java.security.Signature object.

protected abstract String

Returns:

the JCE ProviderName
engineGetJCEProviderName
()

Method engineGetJCEProviderName

protected abstract String

Returns:

the URI representation of Transformation algorithm
engineGetURI
()

Returns the URI representation of Transformation algorithm

protected abstract void
engineInitSign(Key signingKey)

Proxy method for java.security.Signature#initSign(java.security.PrivateKey) which is executed on the internal java.security.Signature object.

protected abstract void
protected abstract void
engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec)

Proxy method for javax.crypto.Mac which is executed on the internal javax.crypto.Mac#init(Key) 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
protected abstract byte[]

Returns:

the result of the java.security.Signature#sign() method
engineSign
()

Proxy method for java.security.Signature#sign() which is executed on the internal java.security.Signature object.

protected abstract void
engineUpdate(byte[] input)

Proxy method for java.security.Signature#update(byte[]) which is executed on the internal java.security.Signature object.

protected abstract void
engineUpdate(byte input)

Proxy method for java.security.Signature#update(byte[]) which is executed on the internal java.security.Signature object.

protected abstract void
engineUpdate(byte[] buf, int offset, int len)

Proxy method for java.security.Signature#update(byte[], int, int) which is executed on the internal java.security.Signature object.

protected abstract boolean

Returns:

true if the signature is correct
engineVerify
(byte[] signature)

Proxy method for java.security.Signature#verify(byte[]) which is executed on the internal java.security.Signature object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SignatureAlgorithmSpiback to summary
public SignatureAlgorithmSpi()

Method Detail

engineAddContextToElementback to summary
protected void engineAddContextToElement(Element element) throws XMLSignatureException
engineGetContextFromElementback to summary
protected void engineGetContextFromElement(Element element) throws XMLSignatureException

Method engineGetContextFromElement

engineGetJCEAlgorithmStringback to summary
protected abstract String engineGetJCEAlgorithmString()

Proxy method for java.security.Signature#getAlgorithm which is executed on the internal java.security.Signature object.

Returns:String

the result of the java.security.Signature#getAlgorithm method

engineGetJCEProviderNameback to summary
protected abstract String engineGetJCEProviderName()

Method engineGetJCEProviderName

Returns:String

the JCE ProviderName

engineGetURIback to summary
protected abstract String engineGetURI()

Returns the URI representation of Transformation algorithm

Returns:String

the URI representation of Transformation algorithm

engineInitSignback to summary
protected abstract void engineInitSign(Key signingKey) throws XMLSignatureException

Proxy method for java.security.Signature#initSign(java.security.PrivateKey) which is executed on the internal java.security.Signature object.

Exceptions
XMLSignatureException:
if this method is called on a MAC
engineInitSignback to summary
protected abstract void engineInitSign(Key signingKey, SecureRandom secureRandom) throws XMLSignatureException

Proxy method for java.security.Signature#initSign(java.security.PrivateKey, java.security.SecureRandom) which is executed on the internal java.security.Signature object.

Exceptions
XMLSignatureException:
if this method is called on a MAC
engineInitSignback to summary
protected abstract void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureException

Proxy method for javax.crypto.Mac which is executed on the internal javax.crypto.Mac#init(Key) object.

Exceptions
XMLSignatureException:
if this method is called on a Signature
engineInitSignback to summary
protected static void engineInitSign(Key privateKey, SecureRandom secureRandom, Signature signatureAlgorithm) throws XMLSignatureException
engineInitVerifyback to summary
protected abstract void engineInitVerify(Key verificationKey) throws XMLSignatureException

Method engineInitVerify

engineInitVerifyback to summary
protected static void engineInitVerify(Key publicKey, Signature signatureAlgorithm) throws XMLSignatureException
engineSetHMACOutputLengthback to summary
protected abstract void engineSetHMACOutputLength(int HMACOutputLength) throws XMLSignatureException

Method engineSetHMACOutputLength

engineSetParameterback to summary
protected abstract void engineSetParameter(AlgorithmParameterSpec params) throws XMLSignatureException

Proxy method for java.security.Signature#setParameter( java.security.spec.AlgorithmParameterSpec) which is executed on the internal java.security.Signature object.

engineSignback to summary
protected abstract byte[] engineSign() throws XMLSignatureException

Proxy method for java.security.Signature#sign() which is executed on the internal java.security.Signature object.

Returns:byte[]

the result of the java.security.Signature#sign() method

engineUpdateback to summary
protected abstract void engineUpdate(byte[] input) throws XMLSignatureException

Proxy method for java.security.Signature#update(byte[]) which is executed on the internal java.security.Signature object.

engineUpdateback to summary
protected abstract void engineUpdate(byte input) throws XMLSignatureException

Proxy method for java.security.Signature#update(byte[]) which is executed on the internal java.security.Signature object.

engineUpdateback to summary
protected abstract void engineUpdate(byte[] buf, int offset, int len) throws XMLSignatureException

Proxy method for java.security.Signature#update(byte[], int, int) which is executed on the internal java.security.Signature object.

engineVerifyback to summary
protected abstract boolean engineVerify(byte[] signature) throws XMLSignatureException

Proxy method for java.security.Signature#verify(byte[]) which is executed on the internal java.security.Signature object.

Returns:boolean

true if the signature is correct