Hitachi

uCosminexus Application Server Security Management Guide


The changePassword method

Organization of this page

Description

Changes the password of a user who is correctly authenticated with the specified name, uid, and oldPassword parameters. When single sign-on authentication information is registered, the contents of the single sign-on information repository are also changed.

This method is a static method.

Syntax

public static void changePassword(String name,
                                  String uid,
                                  String oldPassword,
                                  String newPassword)
    throws LoginException,
      SecurityException;

Parameters:

name:

Specifies the application name (name) of the login module (LoginContext) used for authentication.

uid:

Specifies the user ID to be changed.

oldPassword:

Specifies the old password.

newPassword:

Specifies the new password.

Exceptions

javax.security.auth.login.LoginException:

Information necessary for authentication is missing or the user ID or password is wrong.

java.lang.SecurityException:

Access permission is not granted.

Return value

None

Remarks