Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4039E6BBC for ; Sat, 11 Jun 2011 17:39:22 +0000 (UTC) Received: (qmail 23369 invoked by uid 500); 11 Jun 2011 17:39:22 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 23336 invoked by uid 500); 11 Jun 2011 17:39:22 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 23328 invoked by uid 99); 11 Jun 2011 17:39:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2011 17:39:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2011 17:39:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EBBD5110A24 for ; Sat, 11 Jun 2011 17:38:58 +0000 (UTC) Date: Sat, 11 Jun 2011 17:38:58 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <426802471.14124.1307813938962.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1802550332.2728.1307420279072.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-4061) Add asymmetric encryption support to the XMLSecurity component 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/CAMEL-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047955#comment-13047955 ] Claus Ibsen commented on CAMEL-4061: ------------------------------------ Did the 2nd patch ever get committed? > Add asymmetric encryption support to the XMLSecurity component > -------------------------------------------------------------- > > Key: CAMEL-4061 > URL: https://issues.apache.org/jira/browse/CAMEL-4061 > Project: Camel > Issue Type: Improvement > Reporter: Rich Newcomb > Assignee: Hadrian Zbarcea > Attachments: 2011.06.06-CAMEL-4061-camel-core-2.7.x.patch, 2011.06.06-CAMEL-4061-xmlsecurity-2.7.x.patch, recipient.ks, sender.ts > > > Enhance the camel-xmlsecurity data format to support asymmetric key encryption algorithms. > This enhancement provides the following capabilities: > 1. Expands the xmlsecurity data format API with a public method that accepts a key transport algorithm and recipient key alias > 2. Supports the RSA 1.5 and RSA OAEP asymmetric key encryption algorithms > 3. Alternatively allows the recipient public key alias to be defined within a message exchange or in camel context > 4. Allows key store and trust store information to be defined in the camel context > Example configuration: > {code} > // context properties for encryption > contextProps.put(XMLSecurityDataFormat.XML_ENC_TRUST_STORE_URL, getClass().getClassLoader().getResource("sender.ts").toString()); > contextProps.put(XMLSecurityDataFormat.XML_ENC_TRUST_STORE_PASSWORD, "password"); > contextProps.put(XMLSecurityDataFormat.XML_ENC_RECIPIENT_ALIAS, "recipient"); > > // context properties for decryption > contextProps.put(XMLSecurityDataFormat.XML_ENC_KEY_STORE_URL, getClass().getClassLoader().getResource("recipient.ks").toString()); > contextProps.put(XMLSecurityDataFormat.XML_ENC_KEY_STORE_PASSWORD, "password"); > contextProps.put(XMLSecurityDataFormat.XML_ENC_KEY_STORE_ALIAS, "recipient"); > > context.addRoutes(new RouteBuilder() { > public void configure() { > from("direct:start") > .marshal().secureXML("//privatenode", true, "some-pub-key-alias", XMLCipher.AES_256, XMLCipher.RSA_v1dot5).to("mock:encrypted") > .unmarshal().secureXML("//privatenode", true, "somet-pub-key-alias",XMLCipher.AES_256,XMLCipher.RSA_v1dot5).to("mock:decrypted") > } > }); > {code} > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira