sigBuilder.setExternalKey(tempSecret, tokenId);
sigBuilder.setSignatureAlgorithm(XMLSignature.ALGO_ID_MAC_HMAC_SHA1);
sigBuilder.build(doc, crypto, secHeader);
// Derived key encryption
WSSecDKEncrypt encrBuilder = new WSSecDKEncrypt();
encrBuilder.setSymmetricEncAlgorithm(WSConstants.AES_128);
encrBuilder.setExternalKey(tempSecret, tokenId);
encrBuilder.build(doc, crypto, secHeader);
sctBuilder.prependSCTElementToHeader(doc, secHeader);
// String out = org.apache.ws.security.util.XMLUtils
// .PrettyDocumentToString(doc);