title: How to store custom information in SecurityContext of spring-security?
body: <p>In my application I'm using LDAP authentication. But i'm also have 2 remote services which requires authentication via method login(username, password). The method returns security token which makes me able to invoke another methods, i.e. I should pass security token to service methods as first argument.<br>
  So I'd like to get these security tokens immediately after successful login using LDAP and store them in SecurityContext. I tried to use <em>authentication-success-handler-ref</em> of <em>form-login</em> element. Using the handler I replace <em>Authentication</em> object in the SecurityContext with custom AuthenticationToken that holds not only password but also security tokens. But in this case I have an exception that no authentication provider supports this class of token. 
  I know it's also possible to store tokens in the HTTP session but in this case I have to pass session to service object, so I'd like to store the tokens in SecurityContext.</p>
  
  <p>What is the best approach to handle service security token?</p>