BEA Systems, Inc.


weblogic.management.security.authentication
Interface UserPasswordEditorMBean

All Known Subinterfaces:
ActiveDirectoryAuthenticatorMBean, DefaultAuthenticatorMBean, IPlanetAuthenticatorMBean, LDAPAuthenticatorMBean, NovellAuthenticatorMBean, OpenLDAPAuthenticatorMBean, UserEditorMBean

public interface UserPasswordEditorMBean
extends weblogic.management.commo.StandardInterface

Provides two methods for changing a user's password. An Authentication-provider MBean can optionally extend this MBean. The WebLogic Server Administration Console detects when an Authentication provider extends this MBean and automatically provides a GUI for using these methods.

Note: A code example has been added that shows how to use the Servlet run-as tag, administrative privileges, and security provider MBeans to allow a user to change their own password. This code example is available on the Internet at http://dev2dev.bea.com/codelibrary/code/pwchange.jsp.


Method Summary
 void changeUserPassword(java.lang.String userName, java.lang.String oldPassword, java.lang.String newPassword)
          Used by a user to change his or her password.
 void resetUserPassword(java.lang.String userName, java.lang.String newPassword)
          Used by an administrator to change a user's password.
 
Methods inherited from interface weblogic.management.commo.StandardInterface
wls_getAttributeTag, wls_getConstructorTag, wls_getDisplayName, wls_getInterfaceClassName, wls_getMBeanTag, wls_getNotificationTag, wls_getObjectName, wls_getOperationTag
 

Method Detail

changeUserPassword

public void changeUserPassword(java.lang.String userName,
                               java.lang.String oldPassword,
                               java.lang.String newPassword)
                        throws NotFoundException,
                               InvalidParameterException
Used by a user to change his or her password.

Parameters:
userName - - The name of an existing user.
oldPassword - - The current password for the user.
newPassword - - The new password for the user. The Authentication provider determines the syntax requirements for passwords.
Throws:
NotFoundException -  
InvalidParameterException -  

resetUserPassword

public void resetUserPassword(java.lang.String userName,
                              java.lang.String newPassword)
                       throws NotFoundException,
                              InvalidParameterException
Used by an administrator to change a user's password.

Parameters:
userName - - The name of an existing user.
newPassword - - The new password for the user. The Authentication provider determines the syntax requirements for passwords.
Throws:
NotFoundException -  
InvalidParameterException -  

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs70

Copyright © 2004 BEA Systems, Inc. All Rights Reserved.
WebLogic Server 7.0 API Reference