sigBuilder.setExternalKey(ek, tokenIdentifier);
sigBuilder.setSignatureAlgorithm(XMLSignature.ALGO_ID_MAC_HMAC_SHA1);
/* Document signedDoc = */ sigBuilder.build(doc, secHeader);
encrKeyBuilder.prependToHeader(secHeader);
encrKeyBuilder.prependBSTElementToHeader(secHeader);
Message signedMessage = SOAPUtil.toAxisMessage(doc);
if (log.isDebugEnabled()) {
log.debug("Encrypted message: 3DES + DerivedKeys");
XMLUtils.PrettyElementToWriter(signedMessage.getSOAPEnvelope()