Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C689999A for ; Thu, 1 Mar 2012 16:14:01 +0000 (UTC) Received: (qmail 38599 invoked by uid 500); 1 Mar 2012 16:14:00 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 38551 invoked by uid 500); 1 Mar 2012 16:14:00 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 38492 invoked by uid 99); 1 Mar 2012 16:14:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 16:14:00 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of mgiammarco@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 16:13:53 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1S38dJ-0004J0-1J for users@camel.apache.org; Thu, 01 Mar 2012 08:13:33 -0800 Date: Thu, 1 Mar 2012 08:13:33 -0800 (PST) From: mgiammarco To: users@camel.apache.org Message-ID: <1330618413031-5528299.post@n5.nabble.com> In-Reply-To: <1330560286376-5526421.post@n5.nabble.com> References: <1330430597369-5521623.post@n5.nabble.com> <1330531577528-5525360.post@n5.nabble.com> <1330545757224-5525938.post@n5.nabble.com> <1330552825929-5526199.post@n5.nabble.com> <1330558042845-5526376.post@n5.nabble.com> <1330560286376-5526421.post@n5.nabble.com> Subject: Re: How can Shiro be used with camel to limit access to a route? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have already looked at shirosecurityinjector source code to find the name of the header it adds to the message. Here it is: public ByteSource encrypt() throws Exception { ByteArrayOutputStream stream = new ByteArrayOutputStream(); ObjectOutput serialStream = new ObjectOutputStream(stream); serialStream.writeObject(securityToken); ByteSource byteSource = cipherService.encrypt(stream.toByteArray(), passPhrase); serialStream.close(); stream.close(); return byteSource; } In effects it returns a "ByteSource" and not a String, but if I log the message the token is clearly a String, probably because it is called ByteSource toString(). Anyway I do some other tests and then I file a bug. Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/How-can-Shiro-be-used-with-camel-to-limit-access-to-a-route-tp5521623p5528299.html Sent from the Camel - Users mailing list archive at Nabble.com.