title: How to secure a socket server with spring security?
body: <p>I want to secure a new client server system based on spring with spring-security and (preferably) method-based security annotations.</p>
  
  <p>there are many spring examples for web-apps but so far i didn't find one for non-web java apps.</p>
  
  <p>Basicly i want to handle security for a netty socket in a way that is transparent for my management beans. For example: authenticate the user of the connection once in a netty handler and leave the complete authorization to spring-security and the annotations on my management beans.</p>
  
  <p>is something like this possible?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>i found an example that uses spring-security in <a href="http://affy.blogspot.de/2005/10/acegi-tutorial-example-of-method-based.html" rel="nofollow" title="acegi security">junit integration tests</a>
  i guess i could do it like that but i wouldn't be able to use IoC for my facades so i'm not that fond of the idea.</p>