title: Retrieve object add in JAAS login module from JSF managedbean
body: <p>Our application uses JSF 2.2 and use glassfish 4 as the server. I need to add some object in the login module during authenticate user, so in the web application, the managed bean can retrieve that object.</p>
  
  <p>In the loginModule I did the following (if it is not the case please tell me the right way to do):</p>
  
  <pre><code>_subject.getPublicCredentials().add(someObject); 
  </code></pre>
  
  <p>But how can I retrieve it in ManagedBean. Any help will be much appreciated.</p>