org.apache.xml.security.signature
Class SignatureProperty

java.lang.Object
  |
  +--org.apache.xml.security.utils.ElementProxy
        |
        +--org.apache.xml.security.utils.SignatureElementProxy
              |
              +--org.apache.xml.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

Field Summary
 
Fields inherited from class org.apache.xml.security.utils.ElementProxy
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY
 
Constructor Summary
SignatureProperty(org.w3c.dom.Document doc, java.lang.String Target)
          ConstructsSignatureProperty using specified Target attribute
SignatureProperty(org.w3c.dom.Document doc, java.lang.String Target, java.lang.String Id)
          Constructs SignatureProperty using sepcified Target attribute and Id attribute
SignatureProperty(org.w3c.dom.Element element, java.lang.String BaseURI)
          Constructs a SignatureProperty from an Element
 
Method Summary
 org.w3c.dom.Node appendChild(org.w3c.dom.Node node)
          Method appendChild
 java.lang.String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
 java.lang.String getId()
          Returns the Id attribute
 java.lang.String getTarget()
          Returns the Target attribute
 void setId(java.lang.String Id)
          Sets the Id attribute
 void setTarget(java.lang.String Target)
          Sets the Target attribute
 
Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy
getBaseNamespace
 
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getChildElementLocalName, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureProperty

public SignatureProperty(org.w3c.dom.Document doc,
                         java.lang.String Target)
                  throws XMLSignatureException
ConstructsSignatureProperty using specified Target attribute

Parameters:
doc - the Document in which XMLsignature is placed
Target - the Target attribute references the Signature element to which the property applies SignatureProperty
Throws:
XMLSignatureException

SignatureProperty

public SignatureProperty(org.w3c.dom.Document doc,
                         java.lang.String Target,
                         java.lang.String Id)
                  throws XMLSignatureException
Constructs SignatureProperty using sepcified Target attribute and Id attribute

Parameters:
doc - the Document in which XMLsignature is placed
Target - the Target attribute references the Signature element to which the property applies
Id - the Id will be specified by Reference.getURI() in validation
Throws:
XMLSignatureException

SignatureProperty

public SignatureProperty(org.w3c.dom.Element element,
                         java.lang.String BaseURI)
                  throws XMLSecurityException
Constructs a SignatureProperty from an Element

Parameters:
element - SignatureProperty element
BaseURI - the URI of the resource where the XML instance was stored
Throws:
XMLSecurityException
Method Detail

setId

public void setId(java.lang.String Id)
Sets the Id attribute

Parameters:
Id - the Id attribute

getId

public java.lang.String getId()
Returns the Id attribute

Returns:
the Id attribute

setTarget

public void setTarget(java.lang.String Target)
Sets the Target attribute

Parameters:
Target - the Target attribute

getTarget

public java.lang.String getTarget()
Returns the Target attribute

Returns:
the Target attribute

appendChild

public org.w3c.dom.Node appendChild(org.w3c.dom.Node node)
Method appendChild

Parameters:
node -

getBaseLocalName

public java.lang.String getBaseLocalName()
Description copied from class: ElementProxy
Returns the localname of the Elements of the sub-class.

Specified by:
getBaseLocalName in class ElementProxy
Returns:
the localname of the Elements of the sub-class.