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

Algorithm

public abstract class Algorithm extends ElementProxy
The Algorithm class which stores the Algorithm URI as a string.

Fields Summary
static Logger
log
{@link java.util.logging} logging facility
Constructors Summary
public Algorithm(Document doc, String algorithmURI)

param
doc
param
algorithmURI is the URI of the algorithm as String


                   
        

      super(doc);

      this.setAlgorithmURI(algorithmURI);
   
public Algorithm(Element element, String BaseURI)
Constructor Algorithm

param
element
param
BaseURI
throws
XMLSecurityException

      super(element, BaseURI);
   
Methods Summary
public java.lang.StringgetAlgorithmURI()
Method getAlgorithmURI

return
The URI of the alogrithm

      return this._constructionElement.getAttributeNS(null, Constants._ATT_ALGORITHM);
   
protected voidsetAlgorithmURI(java.lang.String algorithmURI)
Sets the algorithm's URI as used in the signature.

param
algorithmURI is the URI of the algorithm as String


      if ((this._state == MODE_CREATE) && (algorithmURI != null)) {
         this._constructionElement.setAttributeNS(null, Constants._ATT_ALGORITHM,
                                                algorithmURI);
      }