in src/main/java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java [490:505]
private AuthenticationInfo createAuthInfo(final String authData) {
final String userId = getUserId(authData);
if (userId == null) {
return null;
}
final AuthenticationInfo info = new AuthenticationInfo(HttpServletRequest.FORM_AUTH, userId);
if (jaasHelper.enabled()) {
info.put(JcrResourceConstants.AUTHENTICATION_INFO_CREDENTIALS, new FormCredentials(userId, authData));
} else {
info.put(attrCookieAuthData, authData);
}
return info;
}