📄 serverdialback.html
字号:
<HR><A NAME="setEnabledForSelfSigned(boolean)"><!-- --></A><H3>setEnabledForSelfSigned</H3><PRE>public static void <B>setEnabledForSelfSigned</B>(boolean enabled)</PRE><DL><DD>Sets if server dialback can be used when the remote server presented a self-signed certificate. During TLS the remote server can present a self-signed certificate, if this setting is enabled then the self-signed certificate will be accepted and if SASL EXTERNAL is not offered then server dialback will be used for verifying the remote server.<p> If self-signed certificates are accepted then server dialback over TLS is enabled.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>enabled</CODE> - if server dialback can be used when the remote server presented a self-signed certificate.</DL></DD></DL><HR><A NAME="createOutgoingSession(java.lang.String, java.lang.String, int)"><!-- --></A><H3>createOutgoingSession</H3><PRE>public <A HREF="../../../../org/jivesoftware/openfire/session/LocalOutgoingServerSession.html" title="class in org.jivesoftware.openfire.session">LocalOutgoingServerSession</A> <B>createOutgoingSession</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> domain, <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> hostname, int port)</PRE><DL><DD>Creates a new connection from the Originating Server to the Receiving Server for authenticating the specified domain.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>domain</CODE> - domain of the Originating Server to authenticate with the Receiving Server.<DD><CODE>hostname</CODE> - IP address or hostname of the Receiving Server.<DD><CODE>port</CODE> - port of the Receiving Server.<DT><B>Returns:</B><DD>an OutgoingServerSession if the domain was authenticated or <tt>null</tt> if none.</DL></DD></DL><HR><A NAME="authenticateDomain(org.jivesoftware.openfire.server.OutgoingServerSocketReader, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>authenticateDomain</H3><PRE>public boolean <B>authenticateDomain</B>(<A HREF="../../../../org/jivesoftware/openfire/server/OutgoingServerSocketReader.html" title="class in org.jivesoftware.openfire.server">OutgoingServerSocketReader</A> socketReader, <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> domain, <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> hostname, <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> id)</PRE><DL><DD>Authenticates the Originating Server domain with the Receiving Server. Once the domain has been authenticated the Receiving Server will start accepting packets from the Originating Server.<p> The Receiving Server will connect to the Authoritative Server to verify the dialback key. Most probably the Originating Server machine will be the Authoritative Server too.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>socketReader</CODE> - the reader to use for reading the answer from the Receiving Server.<DD><CODE>domain</CODE> - the domain to authenticate.<DD><CODE>hostname</CODE> - the hostname of the remote server (i.e. Receiving Server).<DD><CODE>id</CODE> - the stream id to be used for creating the dialback key.<DT><B>Returns:</B><DD>true if the Receiving Server authenticated the domain with the Authoritative Server.</DL></DD></DL><HR><A NAME="createIncomingSession(org.dom4j.io.XMPPPacketReader)"><!-- --></A><H3>createIncomingSession</H3><PRE>public <A HREF="../../../../org/jivesoftware/openfire/session/LocalIncomingServerSession.html" title="class in org.jivesoftware.openfire.session">LocalIncomingServerSession</A> <B>createIncomingSession</B>(org.dom4j.io.XMPPPacketReader reader) throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>, org.xmlpull.v1.XmlPullParserException</PRE><DL><DD>Returns a new <A HREF="../../../../org/jivesoftware/openfire/session/IncomingServerSession.html" title="interface in org.jivesoftware.openfire.session"><CODE>IncomingServerSession</CODE></A> with a domain validated by the Authoritative Server. New domains may be added to the returned IncomingServerSession after they have been validated. See <A HREF="../../../../org/jivesoftware/openfire/session/LocalIncomingServerSession.html#validateSubsequentDomain(org.dom4j.Element)"><CODE>LocalIncomingServerSession.validateSubsequentDomain(org.dom4j.Element)</CODE></A>. The remote server will be able to send packets through this session whose domains were previously validated.<p> When acting as an Authoritative Server this method will verify the requested key and will return null since the underlying TCP connection will be closed after sending the response to the Receiving Server.<p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - reader of DOM documents on the connection to the remote server.<DT><B>Returns:</B><DD>an IncomingServerSession that was previously validated against the remote server.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while communicating with the remote server.<DD><CODE>org.xmlpull.v1.XmlPullParserException</CODE> - if an error occurs while parsing XML packets.</DL></DD></DL><HR><A NAME="validateRemoteDomain(org.dom4j.Element, org.jivesoftware.openfire.StreamID)"><!-- --></A><H3>validateRemoteDomain</H3><PRE>public boolean <B>validateRemoteDomain</B>(org.dom4j.Element doc, <A HREF="../../../../org/jivesoftware/openfire/StreamID.html" title="interface in org.jivesoftware.openfire">StreamID</A> streamID)</PRE><DL><DD>Returns true if the domain requested by the remote server was validated by the Authoritative Server. To validate the domain a new TCP connection will be established to the Authoritative Server. The Authoritative Server may be the same Originating Server or some other machine in the Originating Server's network.<p> If the domain was not valid or some error occured while validating the domain then the underlying TCP connection will be closed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - the request for validating the new domain.<DD><CODE>streamID</CODE> - the stream id generated by this server for the Originating Server.<DT><B>Returns:</B><DD>true if the requested domain is valid.</DL></DD></DL><HR><A NAME="verifyReceivedKey(org.dom4j.Element, org.jivesoftware.openfire.Connection)"><!-- --></A><H3>verifyReceivedKey</H3><PRE>public static boolean <B>verifyReceivedKey</B>(org.dom4j.Element doc, <A HREF="../../../../org/jivesoftware/openfire/Connection.html" title="interface in org.jivesoftware.openfire">Connection</A> connection)</PRE><DL><DD>Verifies the key sent by a Receiving Server. This server will be acting as the Authoritative Server when executing this method. The remote server may have established a new connection to the Authoritative Server (i.e. this server) for verifying the key or it may be reusing an existing incoming connection.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - the Element that contains the key to verify.<DD><CODE>connection</CODE> - the connection to use for sending the verification result<DT><B>Returns:</B><DD>true if the key was verified.</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/server/RemoteServerManager.PermissionPolicy.html" title="enum in org.jivesoftware.openfire.server"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jivesoftware/openfire/server/ServerDialback.html" target="_top"><B>FRAMES</B></A> <A HREF="ServerDialback.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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 + -