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

📄 pkcs7signeddata.html

📁 kjlj oipipi poipoipo ipo [pipoi
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#getEncoded()">getEncoded</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;return the bytes for the PKCS7SignedData object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.security.cert.X509Certificate</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#getSigningCertificate()">getSigningCertificate</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Get the X.509 certificate actually used to sign the digest.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#getSigningInfoVersion()">getSigningInfoVersion</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Get the version of the PKCS#7 "SignerInfo" object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#getVersion()">getVersion</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Get the version of the PKCS#7 object.</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/jce/PKCS7SignedData.html#reset()">reset</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Resets the PKCS7SignedData object to it's initial state, ready to sign or verify a new buffer.</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/jce/PKCS7SignedData.html#update(byte)">update</A></B>(byte&nbsp;buf)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Update the digest with the specified byte.</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/jce/PKCS7SignedData.html#update(byte[], int, int)">update</A></B>(byte[]&nbsp;buf,       int&nbsp;off,       int&nbsp;len)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Update the digest with the specified bytes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#verify()">verify</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Verify the digest</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><!-- ========= 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="PKCS7SignedData(byte[])"><!-- --></A><H3>PKCS7SignedData</H3><PRE>public <B>PKCS7SignedData</B>(byte[]&nbsp;in)                throws java.lang.SecurityException,                       java.security.cert.CRLException,                       java.security.InvalidKeyException,                       java.security.NoSuchProviderException,                       java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Read an existing PKCS#7 object from a DER encoded byte array using the BC provider.<P><DL><DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE><DD><CODE>java.security.cert.CRLException</CODE><DD><CODE>java.security.InvalidKeyException</CODE><DD><CODE>java.security.NoSuchProviderException</CODE><DD><CODE>java.security.NoSuchAlgorithmException</CODE></DL></DL><HR><A NAME="PKCS7SignedData(byte[], java.lang.String)"><!-- --></A><H3>PKCS7SignedData</H3><PRE>public <B>PKCS7SignedData</B>(byte[]&nbsp;in,                       java.lang.String&nbsp;provider)                throws java.lang.SecurityException,                       java.security.cert.CRLException,                       java.security.InvalidKeyException,                       java.security.NoSuchProviderException,                       java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Read an existing PKCS#7 object from a DER encoded byte array<P><DL><DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE><DD><CODE>java.security.cert.CRLException</CODE><DD><CODE>java.security.InvalidKeyException</CODE><DD><CODE>java.security.NoSuchProviderException</CODE><DD><CODE>java.security.NoSuchAlgorithmException</CODE></DL></DL><HR><A NAME="PKCS7SignedData(java.security.PrivateKey, java.security.cert.Certificate[], java.lang.String)"><!-- --></A><H3>PKCS7SignedData</H3><PRE>public <B>PKCS7SignedData</B>(java.security.PrivateKey&nbsp;privKey,                       java.security.cert.Certificate[]&nbsp;certChain,                       java.lang.String&nbsp;hashAlgorithm)                throws java.lang.SecurityException,                       java.security.InvalidKeyException,                       java.security.NoSuchProviderException,                       java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Create a new PKCS#7 object from the specified key using the BC provider.<P><DL><DT><B>Parameters:</B><DD><CODE>privKey</CODE> - the private key to be used for signing.<DD><CODE>certChain</CODE> - the certificate chain associated with the private key.<DD><CODE>hashAlgorithm</CODE> - the hashing algorithm used to compute the message digest. Must be "MD5", "MD2", "SHA1" or "SHA"<DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE><DD><CODE>java.security.InvalidKeyException</CODE><DD><CODE>java.security.NoSuchProviderException</CODE><DD><CODE>java.security.NoSuchAlgorithmException</CODE></DL></DL><HR><A NAME="PKCS7SignedData(java.security.PrivateKey, java.security.cert.Certificate[], java.lang.String, java.lang.String)"><!-- --></A><H3>PKCS7SignedData</H3><PRE>public <B>PKCS7SignedData</B>(java.security.PrivateKey&nbsp;privKey,                       java.security.cert.Certificate[]&nbsp;certChain,                       java.lang.String&nbsp;hashAlgorithm,                       java.lang.String&nbsp;provider)                throws java.lang.SecurityException,                       java.security.InvalidKeyException,                       java.security.NoSuchProviderException,                       java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Create a new PKCS#7 object from the specified key.<P><DL><DT><B>Parameters:</B><DD><CODE>privKey</CODE> - the private key to be used for signing.<DD><CODE>certChain</CODE> - the certificate chain associated with the private key.<DD><CODE>hashAlgorithm</CODE> - the hashing algorithm used to compute the message digest. Must be "MD5", "MD2", "SHA1" or "SHA"<DD><CODE>provider</CODE> - the provider to use.<DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE><DD><CODE>java.security.InvalidKeyException</CODE><DD><CODE>java.security.NoSuchProviderException</CODE><DD><CODE>java.security.NoSuchAlgorithmException</CODE></DL></DL><HR><A NAME="PKCS7SignedData(java.security.PrivateKey, java.security.cert.Certificate[], java.security.cert.CRL[], java.lang.String, java.lang.String)"><!-- --></A><H3>PKCS7SignedData</H3><PRE>public <B>PKCS7SignedData</B>(java.security.PrivateKey&nbsp;privKey,                       java.security.cert.Certificate[]&nbsp;certChain,                       java.security.cert.CRL[]&nbsp;crlList,                       java.lang.String&nbsp;hashAlgorithm,                       java.lang.String&nbsp;provider)                throws java.lang.SecurityException,                       java.security.InvalidKeyException,                       java.security.NoSuchProviderException,                       java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Create a new PKCS#7 object from the specified key.<P><DL><DT><B>Parameters:</B><DD><CODE>privKey</CODE> - the private key to be used for signing.<DD><CODE>certChain</CODE> - the certificate chain associated with the private key.<DD><CODE>crlList</CODE> - the crl list associated with the private key.<DD><CODE>hashAlgorithm</CODE> - the hashing algorithm used to compute the message digest. Must be "MD5", "MD2", "SHA1" or "SHA"<DD><CODE>provider</CODE> - the provider to use.<DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE><DD><CODE>java.security.InvalidKeyException</CODE><DD><CODE>java.security.NoSuchProviderException</CODE><DD><CODE>java.security.NoSuchAlgorithmException</CODE></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="getDigestAlgorithm()"><!-- --></A><H3>getDigestAlgorithm</H3><PRE>public java.lang.String <B>getDigestAlgorithm</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Get the algorithm used to calculate the message digest<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>

⌨️ 快捷键说明

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