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

java.lang.Object
  |
  +--org.apache.xml.security.algorithms.SignatureAlgorithmSpi
        |
        +--org.apache.xml.security.algorithms.implementations.SignatureBaseRSA
Direct Known Subclasses:
SignatureBaseRSA.SignatureRSAMD5, SignatureBaseRSA.SignatureRSARIPEMD160, SignatureBaseRSA.SignatureRSASHA1, SignatureBaseRSA.SignatureRSASHA256, SignatureBaseRSA.SignatureRSASHA384, SignatureBaseRSA.SignatureRSASHA512

public abstract class SignatureBaseRSA
extends SignatureAlgorithmSpi

Author:
$Author: geuerp $

Nested Class Summary
static class SignatureBaseRSA.SignatureRSAMD5
           
static class SignatureBaseRSA.SignatureRSARIPEMD160
           
static class SignatureBaseRSA.SignatureRSASHA1
           
static class SignatureBaseRSA.SignatureRSASHA256
           
static class SignatureBaseRSA.SignatureRSASHA384
           
static class SignatureBaseRSA.SignatureRSASHA512
           
 
Constructor Summary
SignatureBaseRSA()
          Constructor SignatureRSA
 
Method Summary
protected  java.lang.String engineGetJCEAlgorithmString()
          Method engineGetJCEAlgorithmString
protected  java.lang.String engineGetJCEProviderName()
          Method engineGetJCEProviderName
abstract  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
 

Constructor Detail

SignatureBaseRSA

public SignatureBaseRSA()
                 throws XMLSignatureException
Constructor SignatureRSA

Throws:
XMLSignatureException
Method Detail

engineGetURI

public abstract 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