Return-Path: Delivered-To: apmail-ws-wss4j-dev-archive@www.apache.org Received: (qmail 17336 invoked from network); 2 Jun 2009 11:17:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 11:17:18 -0000 Received: (qmail 81846 invoked by uid 500); 2 Jun 2009 11:17:30 -0000 Delivered-To: apmail-ws-wss4j-dev-archive@ws.apache.org Received: (qmail 81736 invoked by uid 500); 2 Jun 2009 11:17:30 -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 81722 invoked by uid 99); 2 Jun 2009 11:17:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 11:17:29 +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; Tue, 02 Jun 2009 11:17:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D2AD9234C1E9 for ; Tue, 2 Jun 2009 04:17:07 -0700 (PDT) Message-ID: <1748812338.1243941427862.JavaMail.jira@brutus> Date: Tue, 2 Jun 2009 04:17:07 -0700 (PDT) From: "Colm O hEigeartaigh (JIRA)" To: wss4j-dev@ws.apache.org Subject: [jira] Updated: (WSS-195) More detailed exception thrown from CryptoBase.getPrivateKey() In-Reply-To: <446674978.1243439085589.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-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colm O hEigeartaigh updated WSS-195: ------------------------------------ Priority: Minor (was: Major) > More detailed exception thrown from CryptoBase.getPrivateKey() > -------------------------------------------------------------- > > Key: WSS-195 > URL: https://issues.apache.org/jira/browse/WSS-195 > Project: WSS4J > Issue Type: Improvement > Components: WSS4J Core > Affects Versions: 1.5.7 > Reporter: Aleksander Adamowski > Assignee: Colm O hEigeartaigh > Priority: Minor > Fix For: 1.5.8, 1.6 > > Attachments: wss4j-CryptoBase_better_exception.patch > > > Having a problem with getting a key from one of keystores used by a web service client, I've patched and build my own version of WSS4J that adds keystore-identifying information to the exception thrown from CryptoBase.getPrivateKey() instead of only the looked up alias. > This way, I were able to identify the particular keystore the application was looking for key in. > I'm attaching my patch. > Note that similar improvements should probably be made to other methods in CryptoBase. > The exceptions currently thrown by CryptoBase only specify the alias which was looked up in a keystore. They may not be not sufficient in a complex set up with multiple keystores because they give no hint whatsover about what kind of keystore with what contents was the search performed in. -- 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