org.apache.xml.security.algorithms.implementations
Class SignatureDSA

java.lang.Object
  |
  +--org.apache.xml.security.algorithms.SignatureAlgorithmSpi
        |
        +--org.apache.xml.security.algorithms.implementations.SignatureDSA

public class SignatureDSA
extends SignatureAlgorithmSpi

Author:
$Author: geuerp $

Field Summary
static java.lang.String _URI
          Field _URI
 
Constructor Summary
SignatureDSA()
          Constructor SignatureDSA
 
Method Summary
protected  java.lang.String engineGetJCEAlgorithmString()
          Method engineGetJCEAlgorithmString
protected  java.lang.String engineGetJCEProviderName()
          Method engineGetJCEProviderName
protected  java.lang.String engineGetURI()
          Method engineGetURI
protected  void engineInitSign(java.security.Key secretKey)
          Method engineInitSign
protected  void engineInitSign(java.security.Key secretKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
          Method engineInitSign
protected  void engineInitSign(java.security.PrivateKey privateKey)
          Proxy method for Signature.initSign(java.security.PrivateKey) which is executed on the internal Signature object.
protected  void engineInitSign(java.security.PrivateKey privateKey, java.security.SecureRandom secureRandom)
          Proxy method for Signature.initSign(java.security.PrivateKey) which is executed on the internal Signature object.
protected  void engineInitVerify(java.security.Key secretkey)
          Method engineInitVerify
protected  void engineInitVerify(java.security.PublicKey publickey)
          Proxy method for Signature.initVerify(java.security.PublicKey) which is executed on the internal Signature object.
protected  void engineSetHMACOutputLength(int HMACOutputLength)
          Method engineSetHMACOutputLength
protected  void engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
          Proxy method for Signature.setParameter(java.lang.String, java.lang.Object) 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) 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.
 
Methods inherited from class org.apache.xml.security.algorithms.SignatureAlgorithmSpi
engineAddContextToElement, engineGetContextFromElement, engineSetDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_URI

public static final java.lang.String _URI
Field _URI

See Also:
Constant Field Values
Constructor Detail

SignatureDSA

public SignatureDSA()
             throws XMLSignatureException
Constructor SignatureDSA

Throws:
XMLSignatureException
Method Detail

engineGetURI

protected java.lang.String engineGetURI()
Method engineGetURI

Specified by:
engineGetURI in class SignatureAlgorithmSpi
Returns:

engineSetParameter

protected void engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
                           throws XMLSignatureException
Proxy method for Signature.setParameter(java.lang.String, java.lang.Object) which is executed on the internal Signature object.

Specified by:
engineSetParameter in class SignatureAlgorithmSpi
Parameters:
params -
Throws:
XMLSignatureException

engineVerify

protected boolean engineVerify(byte[] signature)
                        throws XMLSignatureException
Proxy method for Signature.verify(byte[]) which is executed on the internal Signature object.

Specified by:
engineVerify in class SignatureAlgorithmSpi
Parameters:
signature -
Returns:
Throws:
XMLSignatureException

engineInitVerify

protected void engineInitVerify(java.security.PublicKey publickey)
                         throws XMLSignatureException
Proxy method for Signature.initVerify(java.security.PublicKey) which is executed on the internal Signature object.

Specified by:
engineInitVerify in class SignatureAlgorithmSpi
Parameters:
publickey -
Throws:
XMLSignatureException

engineSign

protected byte[] engineSign()
                     throws XMLSignatureException
Proxy method for Signature.sign() which is executed on the internal Signature object.

Specified by:
engineSign in class SignatureAlgorithmSpi
Returns:
the result of the Signature.sign() method
Throws:
XMLSignatureException

engineInitSign

protected void engineInitSign(java.security.PrivateKey privateKey,
                              java.security.SecureRandom secureRandom)
                       throws XMLSignatureException
Proxy method for Signature.initSign(java.security.PrivateKey) which is executed on the internal Signature object.

Specified by:
engineInitSign in class SignatureAlgorithmSpi
Parameters:
privateKey -
secureRandom -
Throws:
XMLSignatureException

engineInitSign

protected void engineInitSign(java.security.PrivateKey privateKey)
                       throws XMLSignatureException
Proxy method for Signature.initSign(java.security.PrivateKey) which is executed on the internal Signature object.

Specified by:
engineInitSign in class SignatureAlgorithmSpi
Parameters:
privateKey -
Throws:
XMLSignatureException

engineUpdate

protected void engineUpdate(byte[] input)
                     throws XMLSignatureException
Proxy method for Signature.update(byte) which is executed on the internal Signature object.

Specified by:
engineUpdate in class SignatureAlgorithmSpi
Parameters:
input -
Throws:
XMLSignatureException

engineUpdate

protected void engineUpdate(byte input)
                     throws XMLSignatureException
Proxy method for Signature.update(byte) which is executed on the internal Signature object.

Specified by:
engineUpdate in class SignatureAlgorithmSpi
Parameters:
input -
Throws:
XMLSignatureException

engineUpdate

protected void engineUpdate(byte[] buf,
                            int offset,
                            int len)
                     throws XMLSignatureException
Proxy method for Signature.update(byte) which is executed on the internal Signature object.

Specified by:
engineUpdate in class SignatureAlgorithmSpi
Parameters:
buf -
offset -
len -
Throws:
XMLSignatureException

engineGetJCEAlgorithmString

protected java.lang.String engineGetJCEAlgorithmString()
Method engineGetJCEAlgorithmString

Specified by:
engineGetJCEAlgorithmString in class SignatureAlgorithmSpi
Returns:

engineGetJCEProviderName

protected java.lang.String engineGetJCEProviderName()
Method engineGetJCEProviderName

Specified by:
engineGetJCEProviderName in class SignatureAlgorithmSpi
Returns:

engineSetHMACOutputLength

protected void engineSetHMACOutputLength(int HMACOutputLength)
                                  throws XMLSignatureException
Method engineSetHMACOutputLength

Specified by:
engineSetHMACOutputLength in class SignatureAlgorithmSpi
Parameters:
HMACOutputLength -
Throws:
XMLSignatureException

engineInitVerify

protected void engineInitVerify(java.security.Key secretkey)
                         throws XMLSignatureException
Method engineInitVerify

Specified by:
engineInitVerify in class SignatureAlgorithmSpi
Parameters:
secretkey -
Throws:
XMLSignatureException

engineInitSign

protected void engineInitSign(java.security.Key secretKey,
                              java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
                       throws XMLSignatureException
Method engineInitSign

Specified by:
engineInitSign in class SignatureAlgorithmSpi
Parameters:
secretKey -
algorithmParameterSpec -
Throws:
XMLSignatureException

engineInitSign

protected void engineInitSign(java.security.Key secretKey)
                       throws XMLSignatureException
Method engineInitSign

Specified by:
engineInitSign in class SignatureAlgorithmSpi
Parameters:
secretKey -
Throws:
XMLSignatureException