Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 95507 invoked from network); 17 May 2007 23:36:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2007 23:36:38 -0000 Received: (qmail 68946 invoked by uid 500); 17 May 2007 23:36:34 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 68054 invoked by uid 500); 17 May 2007 23:36:32 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 68039 invoked by uid 99); 17 May 2007 23:36:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 16:36:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of kpateras@googlemail.com designates 64.233.184.239 as permitted sender) Received: from [64.233.184.239] (HELO wr-out-0506.google.com) (64.233.184.239) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 16:36:25 -0700 Received: by wr-out-0506.google.com with SMTP id i30so742467wra for ; Thu, 17 May 2007 16:36:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pU7lst6FCszDfzR579Zi9dXHY9iVDNqPehBWWmytXZwHj++QfDLcTgz41gzSw7zfsBGcLWm+ry8aT/0JbMCIO5mrVvsVYeB2SRYL+3Da00OLxklZvYp1927zkJsGQmJ0piTWN1QBZG1rg1VdXXBJEblH31FyWE3wSL6DdnlQkfo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MmLrkZ0Hft8pyBKq9psGstLstY3ET7mVP251iQlqXtTdIvhPJJy0G9A9zU80TIina/uB4Ub2O683hxESlwUdhV9kq1wnAB6lxeOKqVXr88J/Lr8ZVBnpeBMp02HjwMEWK/g73vim++d0Hj8OCaACuw5/roTXoRyWIxdsbz7B+SA= Received: by 10.78.165.16 with SMTP id n16mr278388hue.1179444963915; Thu, 17 May 2007 16:36:03 -0700 (PDT) Received: by 10.78.42.13 with HTTP; Thu, 17 May 2007 16:36:03 -0700 (PDT) Message-ID: Date: Fri, 18 May 2007 02:36:03 +0300 From: "Konstantinos Pateras" To: wss4j-dev@ws.apache.org, axis-user@ws.apache.org Subject: Programmatically set encryption user in server In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have set up Axis2 1.1.1 and Rampart 1.1 and configure it (I followed the configuration instructions for Rampart 1.0 that are still supported). I use UsernameToken and encryption with a known key to both parts but I want to set the encryption user programmatically in server when it sends a response. This is because each user has its own key stored in a database and is beeing retrieved in the PasswordCallbackHandler. Is there a way to do it like with useReqSigCert that is used when the incoming message is signed or can I get the calling user in PasswordCallbackHandler when I send the response? Another option is to pass a parameter to the constructor of the PasswordCallbackHandler but I do not know where to instantiate the handler in server. I have tried the following in the PasswordCallbackHandler: MessageContext msgContext = MessageContext.getCurrentMessageContext(); but the msgContext is null in the response. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org