📄 pkcs7signeddata.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#getEncoded()">getEncoded</A></B>()</CODE><BR> <B>Deprecated.</B> 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> java.security.cert.X509Certificate</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#getSigningCertificate()">getSigningCertificate</A></B>()</CODE><BR> <B>Deprecated.</B> 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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#getSigningInfoVersion()">getSigningInfoVersion</A></B>()</CODE><BR> <B>Deprecated.</B> 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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#getVersion()">getVersion</A></B>()</CODE><BR> <B>Deprecated.</B> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#reset()">reset</A></B>()</CODE><BR> <B>Deprecated.</B> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#update(byte)">update</A></B>(byte buf)</CODE><BR> <B>Deprecated.</B> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#update(byte[], int, int)">update</A></B>(byte[] buf, int off, int len)</CODE><BR> <B>Deprecated.</B> 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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/jce/PKCS7SignedData.html#verify()">verify</A></B>()</CODE><BR> <B>Deprecated.</B> Verify the digest</TD></TR></TABLE> <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> <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[] in) throws java.lang.SecurityException, java.security.cert.CRLException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B> <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[] in, java.lang.String provider) throws java.lang.SecurityException, java.security.cert.CRLException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B> <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 privKey, java.security.cert.Certificate[] certChain, java.lang.String hashAlgorithm) throws java.lang.SecurityException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B> <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 privKey, java.security.cert.Certificate[] certChain, java.lang.String hashAlgorithm, java.lang.String provider) throws java.lang.SecurityException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B> <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 privKey, java.security.cert.Certificate[] certChain, java.security.cert.CRL[] crlList, java.lang.String hashAlgorithm, java.lang.String provider) throws java.lang.SecurityException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException</PRE><DL><DD><B>Deprecated.</B> <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> <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 + -