FileDocCategorySizeDatePackage
SignatureProperty.javaAPI DocJava SE 6 API4453Tue Jun 10 00:23:04 BST 2008com.sun.org.apache.xml.internal.security.signature

SignatureProperty

public class SignatureProperty extends SignatureElementProxy
Handles <ds:SignatureProperty> elements Addittional information item concerning the generation of the signature(s) can be placed in this Element
author
Christian Geuer-Pollmann

Fields Summary
static Logger
log
{@link java.util.logging} logging facility
Constructors Summary
public SignatureProperty(Document doc, String Target)
Constructs{@link SignatureProperty} using specified Target attribute

param
doc the {@link Document} in which XMLsignature is placed
param
Target the Target attribute references the Signature element to which the property applies SignatureProperty


                                      
        
      this(doc, Target, null);
   
public SignatureProperty(Document doc, String Target, String Id)
Constructs {@link SignatureProperty} using sepcified Target attribute and Id attribute

param
doc the {@link Document} in which XMLsignature is placed
param
Target the Target attribute references the Signature element to which the property applies
param
Id the Id will be specified by {@link Reference#getURI} in validation


      super(doc);

      this.setTarget(Target);
      this.setId(Id);
   
public SignatureProperty(Element element, String BaseURI)
Constructs a {@link SignatureProperty} from an {@link Element}

param
element SignatureProperty element
param
BaseURI the URI of the resource where the XML instance was stored
throws
XMLSecurityException

      super(element, BaseURI);
   
Methods Summary
public org.w3c.dom.NodeappendChild(org.w3c.dom.Node node)
Method appendChild

param
node
return
the node in this element.

      return this._constructionElement.appendChild(node);
   
public java.lang.StringgetBaseLocalName()

inheritDoc

      return Constants._TAG_SIGNATUREPROPERTY;
   
public java.lang.StringgetId()
Returns the Id attribute

return
the Id attribute

      return this._constructionElement.getAttributeNS(null, Constants._ATT_ID);
   
public java.lang.StringgetTarget()
Returns the Target attribute

return
the Target attribute

      return this._constructionElement.getAttributeNS(null, Constants._ATT_TARGET);
   
public voidsetId(java.lang.String Id)
Sets the Id attribute

param
Id the Id attribute


      if ((this._state == MODE_SIGN) && (Id != null)) {
         this._constructionElement.setAttributeNS(null, Constants._ATT_ID, Id);
         IdResolver.registerElementById(this._constructionElement, Id);
      }
   
public voidsetTarget(java.lang.String Target)
Sets the Target attribute

param
Target the Target attribute


      if ((this._state == MODE_SIGN) && (Target != null)) {
         this._constructionElement.setAttributeNS(null, Constants._ATT_TARGET, Target);
      }