Hitachi

uCosminexus Application Server Security Management Guide


15.8 The LoginUtil class

Description

Checks for a user who has logged into a session for integrated user management.

The package name of the LoginUtil class is com.cosminexus.admin.auth.util.

Syntax
class LoginUtil
{
  public static boolean check(HttpServletRequest request,
                                   HttpServletResponse response);
  public static boolean check(HttpServletRequest request,
                                   HttpServletResponse response,
                                   String realmName);
}
Methods

Method name

Functionality

check method (syntax 1)

Checks for a user who has logged into a session.

check method (syntax 2)

Checks for a user who has logged into a session. Available for checking for a user who has logged into a particular realm.

Remarks

If you bind the subject created at login to HttpSession, then, based on whether the subject has a Principal, you can determine whether there is a currently logged-in user without using the check method of this class. When doing this, you should not stop the session by using the integrated user management functionality.

Organization of this section