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

📄 tlsprotocolhandler.html

📁 java非对称加密的源代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#assertEmpty(java.io.ByteArrayInputStream)">assertEmpty</A></B>(java.io.ByteArrayInputStream&nbsp;is)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make sure the InputStream is now empty.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#close()">close</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes this connection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#connect(org.bouncycastle.crypto.tls.CertificateVerifyer)">connect</A></B>(<A HREF="../../../../org/bouncycastle/crypto/tls/CertificateVerifyer.html" title="interface in org.bouncycastle.crypto.tls">CertificateVerifyer</A>&nbsp;verifyer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connects to the remote system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#failWithError(short, short)">failWithError</A></B>(short&nbsp;alertLevel,              short&nbsp;alertDescription)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Terminate this connection whith an alert.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#flush()">flush</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.io.InputStream</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#getInputStream()">getInputStream</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.io.OutputStream</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#getOutputStream()">getOutputStream</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/bouncycastle/crypto/tls/TlsInputStream.html" title="class in org.bouncycastle.crypto.tls">TlsInputStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#getTlsInputStream()">getTlsInputStream</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use 'getInputStream' instead</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/bouncycastle/crypto/tls/TlsOuputStream.html" title="class in org.bouncycastle.crypto.tls">TlsOuputStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#getTlsOuputStream()">getTlsOuputStream</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use 'getOutputStream' instead</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#processData(short, byte[], int, int)">processData</A></B>(short&nbsp;protocol,            byte[]&nbsp;buf,            int&nbsp;offset,            int&nbsp;len)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#readApplicationData(byte[], int, int)">readApplicationData</A></B>(byte[]&nbsp;buf,                    int&nbsp;offset,                    int&nbsp;len)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read data from the network.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/bouncycastle/crypto/tls/TlsProtocolHandler.html#writeData(byte[], int, int)">writeData</A></B>(byte[]&nbsp;buf,          int&nbsp;offset,          int&nbsp;len)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send some application data to the remote system.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="AP_close_notify"><!-- --></A><H3>AP_close_notify</H3><PRE>protected static final short <B>AP_close_notify</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_close_notify">Constant Field Values</A></DL></DL><HR><A NAME="AP_unexpected_message"><!-- --></A><H3>AP_unexpected_message</H3><PRE>protected static final short <B>AP_unexpected_message</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_unexpected_message">Constant Field Values</A></DL></DL><HR><A NAME="AP_bad_record_mac"><!-- --></A><H3>AP_bad_record_mac</H3><PRE>protected static final short <B>AP_bad_record_mac</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_bad_record_mac">Constant Field Values</A></DL></DL><HR><A NAME="AP_decryption_failed"><!-- --></A><H3>AP_decryption_failed</H3><PRE>protected static final short <B>AP_decryption_failed</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_decryption_failed">Constant Field Values</A></DL></DL><HR><A NAME="AP_record_overflow"><!-- --></A><H3>AP_record_overflow</H3><PRE>protected static final short <B>AP_record_overflow</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_record_overflow">Constant Field Values</A></DL></DL><HR><A NAME="AP_decompression_failure"><!-- --></A><H3>AP_decompression_failure</H3><PRE>protected static final short <B>AP_decompression_failure</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_decompression_failure">Constant Field Values</A></DL></DL><HR><A NAME="AP_handshake_failure"><!-- --></A><H3>AP_handshake_failure</H3><PRE>protected static final short <B>AP_handshake_failure</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_handshake_failure">Constant Field Values</A></DL></DL><HR><A NAME="AP_bad_certificate"><!-- --></A><H3>AP_bad_certificate</H3><PRE>protected static final short <B>AP_bad_certificate</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_bad_certificate">Constant Field Values</A></DL></DL><HR><A NAME="AP_unsupported_certificate"><!-- --></A><H3>AP_unsupported_certificate</H3><PRE>protected static final short <B>AP_unsupported_certificate</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_unsupported_certificate">Constant Field Values</A></DL></DL><HR><A NAME="AP_certificate_revoked"><!-- --></A><H3>AP_certificate_revoked</H3><PRE>protected static final short <B>AP_certificate_revoked</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_certificate_revoked">Constant Field Values</A></DL></DL><HR><A NAME="AP_certificate_expired"><!-- --></A><H3>AP_certificate_expired</H3><PRE>protected static final short <B>AP_certificate_expired</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_certificate_expired">Constant Field Values</A></DL></DL><HR><A NAME="AP_certificate_unknown"><!-- --></A><H3>AP_certificate_unknown</H3><PRE>protected static final short <B>AP_certificate_unknown</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_certificate_unknown">Constant Field Values</A></DL></DL><HR><A NAME="AP_illegal_parameter"><!-- --></A><H3>AP_illegal_parameter</H3><PRE>protected static final short <B>AP_illegal_parameter</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_illegal_parameter">Constant Field Values</A></DL></DL><HR><A NAME="AP_unknown_ca"><!-- --></A><H3>AP_unknown_ca</H3><PRE>protected static final short <B>AP_unknown_ca</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_unknown_ca">Constant Field Values</A></DL></DL><HR><A NAME="AP_access_denied"><!-- --></A><H3>AP_access_denied</H3><PRE>protected static final short <B>AP_access_denied</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_access_denied">Constant Field Values</A></DL></DL><HR><A NAME="AP_decode_error"><!-- --></A><H3>AP_decode_error</H3><PRE>protected static final short <B>AP_decode_error</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_decode_error">Constant Field Values</A></DL></DL><HR><A NAME="AP_decrypt_error"><!-- --></A><H3>AP_decrypt_error</H3><PRE>protected static final short <B>AP_decrypt_error</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_decrypt_error">Constant Field Values</A></DL></DL><HR><A NAME="AP_export_restriction"><!-- --></A><H3>AP_export_restriction</H3><PRE>protected static final short <B>AP_export_restriction</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_export_restriction">Constant Field Values</A></DL></DL><HR><A NAME="AP_protocol_version"><!-- --></A><H3>AP_protocol_version</H3><PRE>protected static final short <B>AP_protocol_version</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_protocol_version">Constant Field Values</A></DL></DL><HR><A NAME="AP_insufficient_security"><!-- --></A><H3>AP_insufficient_security</H3><PRE>protected static final short <B>AP_insufficient_security</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_insufficient_security">Constant Field Values</A></DL></DL><HR><A NAME="AP_internal_error"><!-- --></A><H3>AP_internal_error</H3>

⌨️ 快捷键说明

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