How to automate JAAS authentication

I am using JAAS form-based authentication to prevent unauthorized page access. Once logged in the user's roles remain in effect untilt he session expires. Users are demanding a "remember me" check box. That requires programmatic login in addition to, not in place of, the form-based intercept. What is the API call to authenticate a user? Googled my brains out but no solutions appeared. .

[397 byte] By [xoomooa] at [2007-10-2 15:54:19]
# 1
This seems like a common requirement and I know it's not obvious because I've looked. Is nobody using form-based authentication and programmatically logging in users (e.g., remember the user/password hash based on a cookie).
xoomooa at 2007-7-13 16:08:52 > top of Java-index,Security,Other Security APIs, Tools, and Issues...