Hitachi

uCosminexus Application Server Security Management Guide


The check method (syntax 1)

Organization of this page

Description

Checks for a user who has logged into a session. If at least one user is found who has logged into a realm within the session, this method returns true.

Syntax

public static boolean check(HttpServletRequest request,
                                 HttpServletResponse response);

Parameters

request:

Specifies the reference to HttpServletRequest that was passed to JSP/Servlet. If null is specified, a NullPointerException occurs.

response:

Specifies the reference to HttpServletResponse that was passed to JSP/Servlet. If null is specified, a NullPointerException occurs.

Exception

java.lang.NullPointerException:

One of the parameters for this method has been specified as null.

Return values

true:

A currently logged-in user has been found.

false:

A currently logged-in user has not been found.