[ 
https://issues.apache.org/activemq/browse/CAMEL-2779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60953#action_60953
 ] 

Claus Ibsen commented on CAMEL-2779:
------------------------------------

This method most likely need to close the outputs stream after usage
{code}
+    public ByteSource encrypt() throws Exception {
+        ByteArrayOutputStream stream = new  ByteArrayOutputStream();
+        ObjectOutput serialStream = new ObjectOutputStream(stream);
+        serialStream.writeObject(securityToken);
+        ByteSource byteSource = cipherService.encrypt(stream.toByteArray(), 
passPhrase);
+        return byteSource;
+        
+    }
+
{code}

Also there is an empty line at the end, and a double space. The checkstyle of 
Camel will pickup this
http://camel.apache.org/building.html

> Security - Allow to use Apache Shiro as security framework as well
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2779
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2779
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Claus Ibsen
>            Assignee: Ashwin Karpe
>             Fix For: Future
>
>         Attachments: camel-shiro-20100727.zip, camel-shiro.diff
>
>
> Looks like Apache Shiro could be a good security framework
> http://incubator.apache.org/shiro/index.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to