static Element createDigestMethodElement(Document doc,String hashMethod) throws Exception {
  Element digestMethodElement=doc.createElement(PREFIX_DS + Constants._TAG_DIGESTMETHOD);
  digestMethodElement.setAttribute(Constants._ATT_ALGORITHM,getDigestAlgorithmURI(hashMethod));
  return digestMethodElement;
}

static Element createDigestMethodElement ( Document doc , String hashMethod ) throws Exception { Element digestMethodElement = doc . createElement ( PREFIX_DS + Constants . _TAG_DIGESTMETHOD ) ; digestMethodElement . setAttribute ( Constants . _ATT_ALGORITHM , getDigestAlgorithmURI ( hashMethod ) ) ; return digestMethodElement ; }
creates and returns a ds : digestmethod element .
