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

📄 tlsprotocolhandler.html

📁 java非对称加密的源代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<PRE>protected static final short <B>AP_internal_error</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_internal_error">Constant Field Values</A></DL></DL><HR><A NAME="AP_user_canceled"><!-- --></A><H3>AP_user_canceled</H3><PRE>protected static final short <B>AP_user_canceled</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_user_canceled">Constant Field Values</A></DL></DL><HR><A NAME="AP_no_renegotiation"><!-- --></A><H3>AP_no_renegotiation</H3><PRE>protected static final short <B>AP_no_renegotiation</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AP_no_renegotiation">Constant Field Values</A></DL></DL><HR><A NAME="AL_warning"><!-- --></A><H3>AL_warning</H3><PRE>protected static final short <B>AL_warning</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AL_warning">Constant Field Values</A></DL></DL><HR><A NAME="AL_fatal"><!-- --></A><H3>AL_fatal</H3><PRE>protected static final short <B>AL_fatal</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.bouncycastle.crypto.tls.TlsProtocolHandler.AL_fatal">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="TlsProtocolHandler(java.io.InputStream, java.io.OutputStream)"><!-- --></A><H3>TlsProtocolHandler</H3><PRE>public <B>TlsProtocolHandler</B>(java.io.InputStream&nbsp;is,                          java.io.OutputStream&nbsp;os)</PRE><DL></DL><HR><A NAME="TlsProtocolHandler(java.io.InputStream, java.io.OutputStream, java.security.SecureRandom)"><!-- --></A><H3>TlsProtocolHandler</H3><PRE>public <B>TlsProtocolHandler</B>(java.io.InputStream&nbsp;is,                          java.io.OutputStream&nbsp;os,                          java.security.SecureRandom&nbsp;sr)</PRE><DL></DL><!-- ============ 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="processData(short, byte[], int, int)"><!-- --></A><H3>processData</H3><PRE>protected void <B>processData</B>(short&nbsp;protocol,                           byte[]&nbsp;buf,                           int&nbsp;offset,                           int&nbsp;len)                    throws java.io.IOException</PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="connect(org.bouncycastle.crypto.tls.CertificateVerifyer)"><!-- --></A><H3>connect</H3><PRE>public void <B>connect</B>(<A HREF="../../../../org/bouncycastle/crypto/tls/CertificateVerifyer.html" title="interface in org.bouncycastle.crypto.tls">CertificateVerifyer</A>&nbsp;verifyer)             throws java.io.IOException</PRE><DL><DD>Connects to the remote system.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>verifyer</CODE> - Will be used when a certificate is received to verify                 that this certificate is accepted by the client.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If handshake was not successfull.</DL></DD></DL><HR><A NAME="readApplicationData(byte[], int, int)"><!-- --></A><H3>readApplicationData</H3><PRE>protected int <B>readApplicationData</B>(byte[]&nbsp;buf,                                  int&nbsp;offset,                                  int&nbsp;len)                           throws java.io.IOException</PRE><DL><DD>Read data from the network. The method will return immed, if there is still some data left in the buffer, or block untill some application data has been read from the network.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>buf</CODE> - The buffer where the data will be copied to.<DD><CODE>offset</CODE> - The position where the data will be placed in the buffer.<DD><CODE>len</CODE> - The maximum number of bytes to read.<DT><B>Returns:</B><DD>The number of bytes read.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If something goes wrong during reading data.</DL></DD></DL><HR><A NAME="writeData(byte[], int, int)"><!-- --></A><H3>writeData</H3><PRE>protected void <B>writeData</B>(byte[]&nbsp;buf,                         int&nbsp;offset,                         int&nbsp;len)                  throws java.io.IOException</PRE><DL><DD>Send some application data to the remote system. <p/> The method will handle fragmentation internally.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>buf</CODE> - The buffer with the data.<DD><CODE>offset</CODE> - The position in the buffer where the data is placed.<DD><CODE>len</CODE> - The length of the data.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If something goes wrong during sending.</DL></DD></DL><HR><A NAME="getTlsOuputStream()"><!-- --></A><H3>getTlsOuputStream</H3><PRE>public <A HREF="../../../../org/bouncycastle/crypto/tls/TlsOuputStream.html" title="class in org.bouncycastle.crypto.tls">TlsOuputStream</A> <B>getTlsOuputStream</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use 'getOutputStream' instead</I><P><DD><DL></DL></DD></DL><HR><A NAME="getOutputStream()"><!-- --></A><H3>getOutputStream</H3><PRE>public java.io.OutputStream <B>getOutputStream</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>An OutputStream which can be used to send data.</DL></DD></DL><HR><A NAME="getTlsInputStream()"><!-- --></A><H3>getTlsInputStream</H3><PRE>public <A HREF="../../../../org/bouncycastle/crypto/tls/TlsInputStream.html" title="class in org.bouncycastle.crypto.tls">TlsInputStream</A> <B>getTlsInputStream</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use 'getInputStream' instead</I><P><DD><DL></DL></DD></DL><HR><A NAME="getInputStream()"><!-- --></A><H3>getInputStream</H3><PRE>public java.io.InputStream <B>getInputStream</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>An InputStream which can be used to read data.</DL></DD></DL><HR><A NAME="failWithError(short, short)"><!-- --></A><H3>failWithError</H3><PRE>protected void <B>failWithError</B>(short&nbsp;alertLevel,                             short&nbsp;alertDescription)                      throws java.io.IOException</PRE><DL><DD>Terminate this connection whith an alert. <p/> Can be used for normal closure too.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>alertLevel</CODE> - The level of the alert, an be AL_fatal or AL_warning.<DD><CODE>alertDescription</CODE> - The exact alert message.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If alert was fatal.</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()           throws java.io.IOException</PRE><DL><DD>Closes this connection.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If something goes wrong during closing.</DL></DD></DL><HR><A NAME="assertEmpty(java.io.ByteArrayInputStream)"><!-- --></A><H3>assertEmpty</H3><PRE>protected void <B>assertEmpty</B>(java.io.ByteArrayInputStream&nbsp;is)                    throws java.io.IOException</PRE><DL><DD>Make sure the InputStream is now empty. Fail otherwise.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - The InputStream to check.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If is is not empty.</DL></DD></DL><HR><A NAME="flush()"><!-- --></A><H3>flush</H3><PRE>protected void <B>flush</B>()              throws java.io.IOException</PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></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>&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="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><b>Bouncy Castle Cryptography Library 1.38</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/bouncycastle/crypto/tls/TlsOuputStream.html" title="class in org.bouncycastle.crypto.tls"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/bouncycastle/crypto/tls/TlsRuntimeException.html" title="class in org.bouncycastle.crypto.tls"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?org/bouncycastle/crypto/tls/TlsProtocolHandler.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TlsProtocolHandler.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -