protected void ensureUnsignedSignatureProperties() throws DSSException {
  final NodeList unsignedSignaturePropertiesNodeList=currentSignatureDom.getElementsByTagNameNS(XAdESNamespaces.XAdES,"UnsignedSignatureProperties");
  final int length=unsignedSignaturePropertiesNodeList.getLength();
  if (length == 1) {
    unsignedSignaturePropertiesDom=(Element)unsignedSignaturePropertiesNodeList.item(0);
  }
 else   if (length == 0) {
    unsignedSignaturePropertiesDom=DSSXMLUtils.addElement(documentDom,unsignedPropertiesDom,XAdESNamespaces.XAdES,"xades:UnsignedSignatureProperties");
  }
 else {
    throw new DSSException("The signature contains more then one UnsignedSignatureProperties element! Extension is not possible.");
  }
}

protected void ensureUnsignedSignatureProperties ( ) throws DSSException { final NodeList unsignedSignaturePropertiesNodeList = currentSignatureDom . getElementsByTagNameNS ( XAdESNamespaces . XAdES , "UnsignedSignatureProperties" ) ; final int length = unsignedSignaturePropertiesNodeList . getLength ( ) ; if ( length == 1 ) { unsignedSignaturePropertiesDom = ( Element ) unsignedSignaturePropertiesNodeList . item ( 0 ) ; } else if ( length == 0 ) { unsignedSignaturePropertiesDom = DSSXMLUtils . addElement ( documentDom , unsignedPropertiesDom , XAdESNamespaces . XAdES , "xades:UnsignedSignatureProperties" ) ; } else { throw new DSSException ( "The signature contains more then one UnsignedSignatureProperties element! Extension is not possible." ) ; } }
returns or creates ( if it does not exist ) the unsignedsignaturepropertiestype dom object .
