📄 tlsconn.html
字号:
</DL><HR><A NAME="transport"><!-- --></A><H3>transport</H3><PRE><A HREF="../../../../../net/jxta/impl/endpoint/tls/TlsTransport.html" title="class in net.jxta.impl.endpoint.tls">TlsTransport</A> <B>transport</B></PRE><DL><DD>TLS transport this connection is working for.<P><DL></DL></DL><HR><A NAME="destAddr"><!-- --></A><H3>destAddr</H3><PRE><A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> <B>destAddr</B></PRE><DL><DD>The address of the peer to which we will be forwarding ciphertext messages.<P><DL></DL></DL><HR><A NAME="jout"><!-- --></A><H3>jout</H3><PRE><A HREF="../../../../../net/jxta/impl/endpoint/tls/JTlsOutputStream.html" title="class in net.jxta.impl.endpoint.tls">JTlsOutputStream</A> <B>jout</B></PRE><DL><DD>cipher text output stream. This is the stream that SSL reads from.<P><DL></DL></DL><HR><A NAME="jin"><!-- --></A><H3>jin</H3><PRE><A HREF="../../../../../net/jxta/impl/endpoint/tls/JTlsInputStream.html" title="class in net.jxta.impl.endpoint.tls">JTlsInputStream</A> <B>jin</B></PRE><DL><DD>cipher text input stream. This is the stream that SSL reads from.<P><DL></DL></DL><HR><A NAME="params"><!-- --></A><H3>params</H3><PRE><A HREF="../../../../../net/jxta/impl/endpoint/tls/JTlsParams.html" title="class in net.jxta.impl.endpoint.tls">JTlsParams</A> <B>params</B></PRE><DL><DL></DL></DL><HR><A NAME="suites"><!-- --></A><H3>suites</H3><PRE>java.lang.String <B>suites</B></PRE><DL><DL></DL></DL><HR><A NAME="unverifiedCerts"><!-- --></A><H3>unverifiedCerts</H3><PRE>boolean <B>unverifiedCerts</B></PRE><DL><DL></DL></DL><HR><A NAME="checkDates"><!-- --></A><H3>checkDates</H3><PRE>boolean <B>checkDates</B></PRE><DL><DL></DL></DL><HR><A NAME="clientAuthorization"><!-- --></A><H3>clientAuthorization</H3><PRE>boolean <B>clientAuthorization</B></PRE><DL><DL></DL></DL><HR><A NAME="lastAccessed"><!-- --></A><H3>lastAccessed</H3><PRE>long <B>lastAccessed</B></PRE><DL><DD>Time that something "good" last happened on the connection<P><DL></DL></DL><HR><A NAME="retrans"><!-- --></A><H3>retrans</H3><PRE>int <B>retrans</B></PRE><DL><DD>Number of retransmissions we have received.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TlsConn(net.jxta.impl.endpoint.tls.TlsTransport, net.jxta.endpoint.EndpointAddress, boolean)"><!-- --></A><H3>TlsConn</H3><PRE><B>TlsConn</B>(<A HREF="../../../../../net/jxta/impl/endpoint/tls/TlsTransport.html" title="class in net.jxta.impl.endpoint.tls">TlsTransport</A> tp, <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> destAddr, boolean client)</PRE><DL><DD>Create a new connection<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getHandshakeState()"><!-- --></A><H3>getHandshakeState</H3><PRE><A HREF="../../../../../net/jxta/impl/endpoint/tls/TlsConn.HandshakeState.html" title="class in net.jxta.impl.endpoint.tls">TlsConn.HandshakeState</A> <B>getHandshakeState</B>()</PRE><DL><DD>Returns the current state of the connection<P><DD><DL><DT><B>Returns:</B><DD>the current state of the connection.</DL></DD></DL><HR><A NAME="setHandshakeState(net.jxta.impl.endpoint.tls.TlsConn.HandshakeState)"><!-- --></A><H3>setHandshakeState</H3><PRE><A HREF="../../../../../net/jxta/impl/endpoint/tls/TlsConn.HandshakeState.html" title="class in net.jxta.impl.endpoint.tls">TlsConn.HandshakeState</A> <B>setHandshakeState</B>(<A HREF="../../../../../net/jxta/impl/endpoint/tls/TlsConn.HandshakeState.html" title="class in net.jxta.impl.endpoint.tls">TlsConn.HandshakeState</A> newstate)</PRE><DL><DD>Changes the state of the connection. Calls <CODE>java.lang.Object.otifyAll()</CODE> to wake any threads waiting on connection state changes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newstate</CODE> - the new connection state.<DT><B>Returns:</B><DD>the previous state of the connection.</DL></DD></DL><HR><A NAME="init()"><!-- --></A><H3>init</H3><PRE>void <B>init</B>() throws java.io.IOException</PRE><DL><DD>Construct a new connection. Does not open the connection to the remote peer.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="openTLSConnection()"><!-- --></A><H3>openTLSConnection</H3><PRE>void <B>openTLSConnection</B>() throws java.io.IOException</PRE><DL><DD>Open the connection with the remote peer.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="close(net.jxta.impl.endpoint.tls.TlsConn.HandshakeState)"><!-- --></A><H3>close</H3><PRE>void <B>close</B>(<A HREF="../../../../../net/jxta/impl/endpoint/tls/TlsConn.HandshakeState.html" title="class in net.jxta.impl.endpoint.tls">TlsConn.HandshakeState</A> finalstate) throws java.io.IOException</PRE><DL><DD>Close this connection.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>finalstate</CODE> - state that the connection will be in after close.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="sendToRemoteTls(net.jxta.endpoint.Message)"><!-- --></A><H3>sendToRemoteTls</H3><PRE>boolean <B>sendToRemoteTls</B>(<A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg) throws java.io.IOException</PRE><DL><DD>sendToRemoteTls is used by the TlsManager and the TlsConn in order to send a message, either a TLS connection establishement, or TLS fragments to the remote TLS.<P><DD><DL><DT><B>Returns:</B><DD>if true then message was sent, otherwise false.<DT><B>Throws:</B><DD><CODE>IOException</CODE> - if there was a problem sending the message.</DL></DD></DL><HR><A NAME="setPlaintextOutputStream(java.io.OutputStream)"><!-- --></A><H3>setPlaintextOutputStream</H3><PRE>void <B>setPlaintextOutputStream</B>(java.io.OutputStream s)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="sendMessage(net.jxta.endpoint.Message)"><!-- --></A><H3>sendMessage</H3><PRE>void <B>sendMessage</B>(<A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg) throws java.io.IOException</PRE><DL><DD>sendMessage is called by the TlsMessenger each time a service or an application sends a new message over a TLS connection. IOException is thrown when something goes wrong. The message is encrypted by TLS ultimately calling JTlsOutputStream.write(byte[], int, int); with the resulting TLS Record(s).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - The plaintext message to be sent via this connection.<DT><B>Throws:</B><DD><CODE>IOException</CODE> - for errors in sending the message.</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=3 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="class-use/TlsConn.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../net/jxta/impl/endpoint/tls/JTlsUtil.html" title="class in net.jxta.impl.endpoint.tls"><B>PREV CLASS</B></A> <A HREF="../../../../../net/jxta/impl/endpoint/tls/TlsConn.HandshakeState.html" title="class in net.jxta.impl.endpoint.tls"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="TlsConn.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: <A HREF="#nested_class_summary">NESTED</A> | <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></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -