You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Alejandro Martínez Marcos <am...@supercable.es> on 2004/04/10 17:27:05 UTC

Why SignatureAlgorithm and not Signature?

Hello,
            I am examining the source of Apache XML Signature for Java,
as  I want to give the option to sign using a different algorithm from
another provider. The main class of the algorithm in the provider
extends from java.security.SignatureSpi. 
 
I see that you use classes such as SignatureAlgorithm and
SignatureAlgorithmSpi instead of Signature and SignatureSpi (these are
the ones provided in java.security and referenced in the Java
Criptography Architecture), to do the signature.  I have no problem in
adapting my provider, but I would like to know why these classes are
used instead of the other ones.
 
Thanks in advance!
 
Alejandro Martínez