Just for you reference - List of helpful documentation for developing Java Custom Authentication Scheme.
Java SDK side
Java Authentication and Authorization Guidance - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation
Custom Authentication Scheme Creation Uisng Java - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation
This has sub-topics:
Java SDK Reference - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation
JavaDoc can be downloaded from this page.
FCC side
Configure HTML Forms Authentication - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation
See the topic:
If you write a custom authentication scheme and you want to gather more data than the user name and password, the FCC must pack that data into the user name and password fields. ... The custom authentication scheme library must then be able to unpack the data and map it to the user name and password.
KB Articles
TEC559203 How to run the java custom authentication scheme provided with the sample SDK.
TEC2985474 Custom Authentication scheme Debug Logging
TEC529299 Is there any way to store session data within a custom authentication scheme?
TEC547557 Ways To Store Session Data
TEC1674413 "Allow Protection Override" checkbook on the custom authentication-scheme.
If someone finds any other useful information, please add a comment.