protected void incorporateDigestMethod(final Element parentDom,final DigestAlgorithm digestAlgorithm){
  final Element digestMethodDom=documentDom.createElementNS(XMLNS,DS_DIGEST_METHOD);
  final String digestAlgorithmXmlId=digestAlgorithm.getXmlId();
  digestMethodDom.setAttribute(ALGORITHM,digestAlgorithmXmlId);
  parentDom.appendChild(digestMethodDom);
}

protected void incorporateDigestMethod ( final Element parentDom , final DigestAlgorithm digestAlgorithm ) { final Element digestMethodDom = documentDom . createElementNS ( XMLNS , DS_DIGEST_METHOD ) ; final String digestAlgorithmXmlId = digestAlgorithm . getXmlId ( ) ; digestMethodDom . setAttribute ( ALGORITHM , digestAlgorithmXmlId ) ; parentDom . appendChild ( digestMethodDom ) ; }
this method creates the ds : digestmethod dom object
