⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldapusermanager.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A NAME="store(org.apache.turbine.om.security.User)"><!-- --></A><H3>store</H3><PRE>public void <B>store</B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user)           throws <A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A>,                  <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>This method is not yet implemented Save a User object to persistent storage. User's account is required to exist in the storage.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#store(org.apache.turbine.om.security.User)">store</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - an User object to store.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the user's account does not            exist in the database.</DL></DD></DL><HR><A NAME="authenticate(org.apache.turbine.om.security.User, java.lang.String)"><!-- --></A><H3>authenticate</H3><PRE>public void <B>authenticate</B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user,                         java.lang.String&nbsp;password)                  throws <A HREF="../../../../../../org/apache/turbine/util/security/PasswordMismatchException.html">PasswordMismatchException</A>,                         <A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A>,                         <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Authenticate a User with the specified password. If authentication is successful the method returns nothing. If there are any problems, exception was thrown.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#authenticate(org.apache.turbine.om.security.User, java.lang.String)">authenticate</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - a User object to authenticate.<DD><CODE>password</CODE> - the user supplied password.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/PasswordMismatchException.html">PasswordMismatchException</A></CODE> - if the supplied password was            incorrect.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the user's account does not            exist in the database.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.</DL></DD></DL><HR><A NAME="changePassword(org.apache.turbine.om.security.User, java.lang.String, java.lang.String)"><!-- --></A><H3>changePassword</H3><PRE>public void <B>changePassword</B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user,                           java.lang.String&nbsp;oldPassword,                           java.lang.String&nbsp;newPassword)                    throws <A HREF="../../../../../../org/apache/turbine/util/security/PasswordMismatchException.html">PasswordMismatchException</A>,                           <A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A>,                           <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>This method is not yet implemented Change the password for an User.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#changePassword(org.apache.turbine.om.security.User, java.lang.String, java.lang.String)">changePassword</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - an User to change password for.<DD><CODE>password</CODE> - the new password.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/PasswordMismatchException.html">PasswordMismatchException</A></CODE> - if the supplied password was            incorrect.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the user's account does not            exist in the database.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.</DL></DD></DL><HR><A NAME="forcePassword(org.apache.turbine.om.security.User, java.lang.String)"><!-- --></A><H3>forcePassword</H3><PRE>public void <B>forcePassword</B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user,                          java.lang.String&nbsp;password)                   throws <A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A>,                          <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>This method is not yet implemented Forcibly sets new password for an User. This is supposed to be used by the administrator to change the forgotten or compromised passwords. Certain implementatations of this feature would require adminstrative level access to the authenticating server / program.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#forcePassword(org.apache.turbine.om.security.User, java.lang.String)">forcePassword</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - an User to change password for.<DD><CODE>password</CODE> - the new password.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the user's record does not            exist in the database.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.</DL></DD></DL><HR><A NAME="createAccount(org.apache.turbine.om.security.User, java.lang.String)"><!-- --></A><H3>createAccount</H3><PRE>public void <B>createAccount</B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user,                          java.lang.String&nbsp;initialPassword)                   throws <A HREF="../../../../../../org/apache/turbine/util/security/EntityExistsException.html">EntityExistsException</A>,                          <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>This method is not yet implemented Creates new user account with specified attributes.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#createAccount(org.apache.turbine.om.security.User, java.lang.String)">createAccount</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - the object describing account to be created.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/EntityExistsException.html">EntityExistsException</A></CODE> - if the user account already exists.</DL></DD></DL><HR><A NAME="removeAccount(org.apache.turbine.om.security.User)"><!-- --></A><H3>removeAccount</H3><PRE>public void <B>removeAccount</B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user)                   throws <A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A>,                          <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>This method is not yet implemented Removes an user account from the system.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#removeAccount(org.apache.turbine.om.security.User)">removeAccount</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - the object describing the account to be removed.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the user account is not present.</DL></DD></DL><HR><A NAME="bind(java.lang.String, java.lang.String)"><!-- --></A><H3>bind</H3><PRE>public javax.naming.directory.DirContext <B>bind</B>(java.lang.String&nbsp;username,                                              java.lang.String&nbsp;password)                                       throws javax.naming.NamingException,                                              <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A>,                                              <A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></PRE><DL><DD>Creats an initial context.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ldap</CODE> - admin username supplied in TRP.<DD><CODE>ldap</CODE> - admin password supplied in TRP<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the user account is not present.<DD><CODE>javax.naming.NamingException</CODE> - when an error occurs with the named server.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/LDAPUserManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="LDAPUserManager.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright &copy; 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -