org.apache.xml.security.signature
Class SignatureProperty

java.lang.Object
  extended by org.apache.xml.security.utils.ElementProxy
      extended by org.apache.xml.security.utils.SignatureElementProxy
          extended by org.apache.xml.security.signature.SignatureProperty

public class SignatureProperty
extends SignatureElementProxy

Handles <ds:SignatureProperty> elements Additional 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, log
 
Constructor Summary
SignatureProperty(Document doc, String target)
          ConstructsSignatureProperty using specified target attribute
SignatureProperty(Document doc, String target, String id)
          Constructs SignatureProperty using sepcified target attribute and id attribute
SignatureProperty(Element element, String BaseURI)
          Constructs a SignatureProperty from an Element
 
Method Summary
 Node appendChild(Node node)
          Method appendChild
 String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
 String getId()
          Returns the id attribute
 String getTarget()
          Returns the target attribute
 void setId(String id)
          Sets the id attribute
 void setTarget(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, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureProperty

public SignatureProperty(Document doc,
                         String target)
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

SignatureProperty

public SignatureProperty(Document doc,
                         String target,
                         String id)
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

SignatureProperty

public SignatureProperty(Element element,
                         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(String id)
Sets the id attribute

Parameters:
id - the id attribute

getId

public String getId()
Returns the id attribute

Returns:
the id attribute

setTarget

public void setTarget(String target)
Sets the target attribute

Parameters:
target - the target attribute

getTarget

public String getTarget()
Returns the target attribute

Returns:
the target attribute

appendChild

public Node appendChild(Node node)
Method appendChild

Parameters:
node -
Returns:
the node in this element.

getBaseLocalName

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


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.