uCosminexus Application Server, Security Management Guide

[Contents][Index][Back][Next]

The login method

Description

Logs into a J2EE server.

Syntax

public final boolean login(String username,
                                 String password)
  throws NotFoundServerException,InvalidUserNameException,
          InvalidPasswordException;

Parameters

username:
Specifies the user name (plain text).

password:
Specifies the password (plain text).

Exceptions

com.hitachi.software.ejb.security.base.authentication.NotFoundServerException:
The J2EE server has not been found.

com.hitachi.software.ejb.security.base.authentication.InvalidUserNameException:
The specified user name has not been found.

com.hitachi.software.ejb.security.base.authentication.InvalidPasswordException:
The specified password is invalid.

Return value

true:
Login has succeeded.

false:
Login has failed.