Return-Path: Delivered-To: apmail-ws-wss4j-dev-archive@www.apache.org Received: (qmail 7519 invoked from network); 13 Jun 2009 22:37:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jun 2009 22:37:25 -0000 Received: (qmail 78468 invoked by uid 500); 13 Jun 2009 22:37:37 -0000 Delivered-To: apmail-ws-wss4j-dev-archive@ws.apache.org Received: (qmail 78355 invoked by uid 500); 13 Jun 2009 22:37:36 -0000 Mailing-List: contact wss4j-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list wss4j-dev@ws.apache.org Received: (qmail 78346 invoked by uid 99); 13 Jun 2009 22:37:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jun 2009 22:37:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jun 2009 22:37:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5D575234C045 for ; Sat, 13 Jun 2009 15:37:07 -0700 (PDT) Message-ID: <404186470.1244932627381.JavaMail.jira@brutus> Date: Sat, 13 Jun 2009 15:37:07 -0700 (PDT) From: "George Stanchev (JIRA)" To: wss4j-dev@ws.apache.org Subject: [jira] Commented: (WSS-194) Support overriding KeyStore alias for signature so that it can be different than user name used for UsernameToken In-Reply-To: <905830684.1243011405595.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/WSS-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719190#action_12719190 ] George Stanchev commented on WSS-194: ------------------------------------- Since axis2 rampart is a main consumer of wss4j, do we need to submit a JIRA for it to consume the new setting or its developers (Nandana, etc) monitor this list and will take care of it? > Support overriding KeyStore alias for signature so that it can be different than user name used for UsernameToken > ----------------------------------------------------------------------------------------------------------------- > > Key: WSS-194 > URL: https://issues.apache.org/jira/browse/WSS-194 > Project: WSS4J > Issue Type: New Feature > Components: WSS4J Handlers > Affects Versions: 1.5.7 > Reporter: Aleksander Adamowski > Assignee: Colm O hEigeartaigh > Fix For: 1.5.8, 1.6 > > Attachments: wss4j-signature_keystore_alias.patch, wss4j-signature_keystore_alias2.patch > > > Currently, when signing a message, the KeyStore alias lookup is performed using the user name from userInfo (which is set in SignatureAction and comes from request data). > This way, the alias in the KeyStore cannot be different from the user name used for UsernameToken authentication. > Some usage scenarios cannot make such an assumption. > E.g. a common configuration is to prompt the user for the username and password, but the KeyStore is distributed with the client application and contains a static entry with a static password for the signing keypair and certificate, and will be used by multiple users (the WS signature comes from the client application, not an individual user). The KeyStore, and signing certificate alias and password is part of application's configuration. > The password for UsernameToken can be differentiated using a proper password callback handler (since the callback it receives specifies in the "usage" property what is the password needed for - e.g. WSPasswordCallback.USERNAME_TOKEN or WSPasswordCallback.SIGNATURE). > A user found a workaround for this problem for Apache Axis: > http://www.nabble.com/Signature-Alias-vs.-Username-Token-User-td21334511.html > However, there's no simple method for differentiating the user name used by the Signature and UsernameToken actions if WSS4J is not used from Axis, but e.g. CXF. > I've implemented a simple solution by introducing a new handler configuration property - SIG_KEYSTORE_ALIAS - which allows to override the KeyStore alias for the Signature action. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org For additional commands, e-mail: wss4j-dev-help@ws.apache.org