title: "Spring Security" and "Java Authentication and Authorization Service(jaas)"
body: <p>I'm so new to Spring and Spring security , we have an extended java application (not web application) and trying to  use spring as a framework.
  I've read a little about jaas and have made a simple jaas security framework for my application (not a perfect one).</p>
  
  <p>now , as we want to merge to Spring framework , I have some questions:</p>
  
  <ol>
  <li><p>Does "Spring Security" based on "jaas" or it can use jaas as an optional provider which can be replaced by something exactly different?</p></li>
  <li><p>Does "Spring Security" has the ability to manage multiple parallel users in a single application? (particularly for authorization)</p></li>
  <li><p>I've found that you should have lots of work to convert basic jaas api to a useful api (using DB, user/group management classes,...), what about "Spring Security"? (seems in jaas-Provider we have a lot's of useful implementations)</p></li>
  <li><p>do you know any sample code using "Spring Security" for a swing application?</p></li>
  </ol>
  
  <p>thanks a lot for your time</p>