protected void incorporateDigestValue(final Element parentDom,final DigestAlgorithm digestAlgorithm,final DSSDocument originalDocument){
  final Element digestValueDom=documentDom.createElementNS(XMLNS,DS_DIGEST_VALUE);
  final String base64EncodedDigestBytes=originalDocument.getDigest(digestAlgorithm);
  if (LOG.isTraceEnabled()) {
    LOG.trace("Digest value {} --> {}",parentDom.getNodeName(),base64EncodedDigestBytes);
  }
  final Text textNode=documentDom.createTextNode(base64EncodedDigestBytes);
  digestValueDom.appendChild(textNode);
  parentDom.appendChild(digestValueDom);
}

protected void incorporateDigestValue ( final Element parentDom , final DigestAlgorithm digestAlgorithm , final DSSDocument originalDocument ) { final Element digestValueDom = documentDom . createElementNS ( XMLNS , DS_DIGEST_VALUE ) ; final String base64EncodedDigestBytes = originalDocument . getDigest ( digestAlgorithm ) ; if ( LOG . isTraceEnabled ( ) ) { LOG . trace ( "Digest value {} --> {}" , parentDom . getNodeName ( ) , base64EncodedDigestBytes ) ; } final Text textNode = documentDom . createTextNode ( base64EncodedDigestBytes ) ; digestValueDom . appendChild ( textNode ) ; parentDom . appendChild ( digestValueDom ) ; }
this method creates the ds : digestvalue dom object .
