cmssigneddatastreamgenerator.html
来自「jijo djoijio oijoij poikijoi joijoij」· HTML 代码 · 共 915 行 · 第 1/4 页
HTML
915 行
public void <B>addSigner</B>(java.security.PrivateKey key, byte[] subjectKeyID, java.lang.String digestOID, org.bouncycastle.asn1.cms.AttributeTable signedAttr, org.bouncycastle.asn1.cms.AttributeTable unsignedAttr, java.security.Provider sigProvider) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException</PRE><DL><DD>add a signer with extra signed/unsigned attributes.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.security.NoSuchAlgorithmException</CODE><DD><CODE>java.security.InvalidKeyException</CODE></DL></DD></DL><HR><A NAME="addSigner(java.security.PrivateKey, byte[], java.lang.String, org.bouncycastle.cms.CMSAttributeTableGenerator, org.bouncycastle.cms.CMSAttributeTableGenerator, java.security.Provider)"><!-- --></A><H3>addSigner</H3><PRE>public void <B>addSigner</B>(java.security.PrivateKey key, byte[] subjectKeyID, java.lang.String digestOID, <A HREF="../../../org/bouncycastle/cms/CMSAttributeTableGenerator.html" title="interface in org.bouncycastle.cms">CMSAttributeTableGenerator</A> signedAttrGenerator, <A HREF="../../../org/bouncycastle/cms/CMSAttributeTableGenerator.html" title="interface in org.bouncycastle.cms">CMSAttributeTableGenerator</A> unsignedAttrGenerator, java.security.Provider sigProvider) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException</PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE>java.security.NoSuchAlgorithmException</CODE><DD><CODE>java.security.InvalidKeyException</CODE></DL></DD></DL><HR><A NAME="addSigner(java.security.PrivateKey, byte[], java.lang.String, org.bouncycastle.cms.CMSAttributeTableGenerator, org.bouncycastle.cms.CMSAttributeTableGenerator, java.lang.String)"><!-- --></A><H3>addSigner</H3><PRE>public void <B>addSigner</B>(java.security.PrivateKey key, byte[] subjectKeyID, java.lang.String digestOID, <A HREF="../../../org/bouncycastle/cms/CMSAttributeTableGenerator.html" title="interface in org.bouncycastle.cms">CMSAttributeTableGenerator</A> signedAttrGenerator, <A HREF="../../../org/bouncycastle/cms/CMSAttributeTableGenerator.html" title="interface in org.bouncycastle.cms">CMSAttributeTableGenerator</A> unsignedAttrGenerator, java.lang.String sigProvider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.InvalidKeyException</PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE>java.security.NoSuchAlgorithmException</CODE><DD><CODE>java.security.NoSuchProviderException</CODE><DD><CODE>java.security.InvalidKeyException</CODE></DL></DD></DL><HR><A NAME="open(java.io.OutputStream)"><!-- --></A><H3>open</H3><PRE>public java.io.OutputStream <B>open</B>(java.io.OutputStream out) throws java.io.IOException</PRE><DL><DD>generate a signed object that for a CMS Signed Data object using the given provider.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="open(java.io.OutputStream, boolean)"><!-- --></A><H3>open</H3><PRE>public java.io.OutputStream <B>open</B>(java.io.OutputStream out, boolean encapsulate) throws java.io.IOException</PRE><DL><DD>generate a signed object that for a CMS Signed Data object using the given provider - if encapsulate is true a copy of the message will be included in the signature with the default content type "data".<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="open(java.io.OutputStream, boolean, java.io.OutputStream)"><!-- --></A><H3>open</H3><PRE>public java.io.OutputStream <B>open</B>(java.io.OutputStream out, boolean encapsulate, java.io.OutputStream dataOutputStream) throws java.io.IOException</PRE><DL><DD>generate a signed object that for a CMS Signed Data object using the given provider - if encapsulate is true a copy of the message will be included in the signature with the default content type "data". If dataOutputStream is non null the data being signed will be written to the stream as it is processed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - stream the CMS object is to be written to.<DD><CODE>encapsulate</CODE> - true if data should be encapsulated.<DD><CODE>dataOutputStream</CODE> - output stream to copy the data being signed to.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="open(java.io.OutputStream, java.lang.String, boolean)"><!-- --></A><H3>open</H3><PRE>public java.io.OutputStream <B>open</B>(java.io.OutputStream out, java.lang.String signedContentType, boolean encapsulate) throws java.io.IOException</PRE><DL><DD>generate a signed object that for a CMS Signed Data object using the given provider - if encapsulate is true a copy of the message will be included in the signature. The content type is set according to the OID represented by the string signedContentType.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="open(java.io.OutputStream, java.lang.String, boolean, java.io.OutputStream)"><!-- --></A><H3>open</H3><PRE>public java.io.OutputStream <B>open</B>(java.io.OutputStream out, java.lang.String signedContentType, boolean encapsulate, java.io.OutputStream dataOutputStream) throws java.io.IOException</PRE><DL><DD>generate a signed object that for a CMS Signed Data object using the given provider - if encapsulate is true a copy of the message will be included in the signature. The content type is set according to the OID represented by the string signedContentType.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - stream the CMS object is to be written to.<DD><CODE>signedContentType</CODE> - OID for data to be signed.<DD><CODE>encapsulate</CODE> - true if data should be encapsulated.<DD><CODE>dataOutputStream</CODE> - output stream to copy the data being signed to.<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> </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="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><b>Bouncy Castle Cryptography Library 1.42</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/bouncycastle/cms/CMSSignedDataParser.html" title="class in org.bouncycastle.cms"><B>PREV CLASS</B></A> <A HREF="../../../org/bouncycastle/cms/CMSSignedGenerator.html" title="class in org.bouncycastle.cms"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/bouncycastle/cms/CMSSignedDataStreamGenerator.html" target="_top"><B>FRAMES</B></A> <A HREF="CMSSignedDataStreamGenerator.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: NESTED | <A HREF="#fields_inherited_from_class_org.bouncycastle.cms.CMSSignedGenerator">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: FIELD | <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 + =
减小字号Ctrl + -
显示快捷键?