📄 saslserverplainimpl.html
字号:
<!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getMechanismName()"><!-- --></A><H3>getMechanismName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getMechanismName</B>()</PRE><DL><DD>Returns the IANA-registered mechanism name of this SASL server. ("PLAIN").<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html#getMechanismName()" title="class or interface in javax.security.sasl">getMechanismName</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html" title="class or interface in javax.security.sasl">SaslServer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A non-null string representing the IANA-registered mechanism name.</DL></DD></DL><HR><A NAME="evaluateResponse(byte[])"><!-- --></A><H3>evaluateResponse</H3><PRE>public byte[] <B>evaluateResponse</B>(byte[] response) throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslException.html" title="class or interface in javax.security.sasl">SaslException</A></PRE><DL><DD>Evaluates the response data and generates a challenge. If a response is received from the client during the authentication process, this method is called to prepare an appropriate next challenge to submit to the client. The challenge is null if the authentication has succeeded and no more challenge data is to be sent to the client. It is non-null if the authentication must be continued by sending a challenge to the client, or if the authentication has succeeded but challenge data needs to be processed by the client. <tt>isComplete()</tt> should be called after each call to <tt>evaluateResponse()</tt>,to determine if any further response is needed from the client.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html#evaluateResponse(byte[])" title="class or interface in javax.security.sasl">evaluateResponse</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html" title="class or interface in javax.security.sasl">SaslServer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>response</CODE> - The non-null (but possibly empty) response sent by the client.<DT><B>Returns:</B><DD>The possibly null challenge to send to the client. It is null if the authentication has succeeded and there is no more challenge data to be sent to the client.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslException.html" title="class or interface in javax.security.sasl">SaslException</A></CODE> - If an error occurred while processing the response or generating a challenge.</DL></DD></DL><HR><A NAME="isComplete()"><!-- --></A><H3>isComplete</H3><PRE>public boolean <B>isComplete</B>()</PRE><DL><DD>Determines whether the authentication exchange has completed. This method is typically called after each invocation of <tt>evaluateResponse()</tt> to determine whether the authentication has completed successfully or should be continued.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html#isComplete()" title="class or interface in javax.security.sasl">isComplete</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html" title="class or interface in javax.security.sasl">SaslServer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the authentication exchange has completed; false otherwise.</DL></DD></DL><HR><A NAME="getAuthorizationID()"><!-- --></A><H3>getAuthorizationID</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getAuthorizationID</B>()</PRE><DL><DD>Reports the authorization ID in effect for the client of this session. This method can only be called if isComplete() returns true.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html#getAuthorizationID()" title="class or interface in javax.security.sasl">getAuthorizationID</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html" title="class or interface in javax.security.sasl">SaslServer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The authorization ID of the client.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this authentication session has not completed</DL></DD></DL><HR><A NAME="unwrap(byte[], int, int)"><!-- --></A><H3>unwrap</H3><PRE>public byte[] <B>unwrap</B>(byte[] incoming, int offset, int len) throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslException.html" title="class or interface in javax.security.sasl">SaslException</A></PRE><DL><DD>Unwraps a byte array received from the client. PLAIN supports no security layer.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html#unwrap(byte[], int, int)" title="class or interface in javax.security.sasl">unwrap</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html" title="class or interface in javax.security.sasl">SaslServer</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslException.html" title="class or interface in javax.security.sasl">SaslException</A></CODE> - if attempted to use this method.</DL></DD></DL><HR><A NAME="wrap(byte[], int, int)"><!-- --></A><H3>wrap</H3><PRE>public byte[] <B>wrap</B>(byte[] outgoing, int offset, int len) throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslException.html" title="class or interface in javax.security.sasl">SaslException</A></PRE><DL><DD>Wraps a byte array to be sent to the client. PLAIN supports no security layer.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html#wrap(byte[], int, int)" title="class or interface in javax.security.sasl">wrap</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html" title="class or interface in javax.security.sasl">SaslServer</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslException.html" title="class or interface in javax.security.sasl">SaslException</A></CODE> - if attempted to use this method.</DL></DD></DL><HR><A NAME="getNegotiatedProperty(java.lang.String)"><!-- --></A><H3>getNegotiatedProperty</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getNegotiatedProperty</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> propName)</PRE><DL><DD>Retrieves the negotiated property. This method can be called only after the authentication exchange has completed (i.e., when <tt>isComplete()</tt> returns true); otherwise, an <tt>IllegalStateException</tt> is thrown.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html#getNegotiatedProperty(java.lang.String)" title="class or interface in javax.security.sasl">getNegotiatedProperty</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html" title="class or interface in javax.security.sasl">SaslServer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>propName</CODE> - the property<DT><B>Returns:</B><DD>The value of the negotiated property. If null, the property was not negotiated or is not applicable to this mechanism.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this authentication exchange has not completed</DL></DD></DL><HR><A NAME="dispose()"><!-- --></A><H3>dispose</H3><PRE>public void <B>dispose</B>() throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslException.html" title="class or interface in javax.security.sasl">SaslException</A></PRE><DL><DD>Disposes of any system resources or security-sensitive information the SaslServer might be using. Invoking this method invalidates the SaslServer instance. This method is idempotent.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html#dispose()" title="class or interface in javax.security.sasl">dispose</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslServer.html" title="class or interface in javax.security.sasl">SaslServer</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/sasl/SaslException.html" title="class or interface in javax.security.sasl">SaslException</A></CODE> - If a problem was encountered while disposing the resources.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jivesoftware/openfire/sasl/SaslServerFactoryImpl.html" title="class in org.jivesoftware.openfire.sasl"><B>PREV CLASS</B></A> <A HREF="../../../../org/jivesoftware/openfire/sasl/VerifyPasswordCallback.html" title="class in org.jivesoftware.openfire.sasl"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jivesoftware/openfire/sasl/SaslServerPlainImpl.html" target="_top"><B>FRAMES</B></A> <A HREF="SaslServerPlainImpl.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -