Methods Summary |
---|
public void | addSignatureProperty(com.sun.org.apache.xml.internal.security.signature.SignatureProperty sp)Method addSignatureProperty
this._constructionElement.appendChild(sp.getElement());
XMLUtils.addReturnToElement(this._constructionElement);
|
public java.lang.String | getBaseLocalName()
return Constants._TAG_SIGNATUREPROPERTIES;
|
public java.lang.String | getId()Returns the Id attribute
return this._constructionElement.getAttributeNS(null, Constants._ATT_ID);
|
public int | getLength()Return the nonnegative number of added SignatureProperty elements.
Element[] propertyElems =
XMLUtils.selectDsNodes(this._constructionElement,
Constants._TAG_SIGNATUREPROPERTY
);
return propertyElems.length;
|
public com.sun.org.apache.xml.internal.security.signature.SignatureProperty | item(int i)Return the ith SignatureProperty. Valid i
values are 0 to {link@ getSize}-1 .
try {
Element propertyElem =
XMLUtils.selectDsNode(this._constructionElement,
Constants._TAG_SIGNATUREPROPERTY,
i );
if (propertyElem == null) {
return null;
}
return new SignatureProperty(propertyElem, this._baseURI);
} catch (XMLSecurityException ex) {
throw new XMLSignatureException("empty", ex);
}
|
public void | setId(java.lang.String Id)Sets the Id attribute
if ((this._state == MODE_SIGN) && (Id != null)) {
this._constructionElement.setAttributeNS(null, Constants._ATT_ID, Id);
IdResolver.registerElementById(this._constructionElement, Id);
}
|