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 8B13B40D3 for ; Wed, 8 Jun 2011 21:44:22 +0000 (UTC) Received: (qmail 77041 invoked by uid 500); 8 Jun 2011 21:44:22 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 76993 invoked by uid 500); 8 Jun 2011 21:44: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 76877 invoked by uid 99); 8 Jun 2011 21:44:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 21:44: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; Wed, 08 Jun 2011 21:44: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 EC53B109DBC for ; Wed, 8 Jun 2011 21:43:58 +0000 (UTC) Date: Wed, 8 Jun 2011 21:43:58 +0000 (UTC) From: "Hadrian Zbarcea (JIRA)" To: dev@camel.apache.org Message-ID: <1706382735.4887.1307569438964.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1802550332.2728.1307420279072.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (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:all-tabpanel ] Hadrian Zbarcea reassigned CAMEL-4061: -------------------------------------- Assignee: Hadrian Zbarcea > 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