The SAMLGenerateLoginModule can be used to obtain an application generated SAML token from a shared state object that is intialized in the application's JAAS login module.
Additionally, the GenericIssuedTokenGenerateLoginModule can be used to obtain an application generated SAML token from the shared state. For more information, read the Generating and consuming SAML tokens using stacked JAAS login modules topic.
The following procedure describes the setup that is required to use this functionality.