cmssigneddatastreamgenerator.html

来自「jijo djoijio oijoij poikijoi joijoij」· HTML 代码 · 共 915 行 · 第 1/4 页

HTML
915
字号
public void <B>addSigner</B>(java.security.PrivateKey&nbsp;key,                      byte[]&nbsp;subjectKeyID,                      java.lang.String&nbsp;digestOID,                      org.bouncycastle.asn1.cms.AttributeTable&nbsp;signedAttr,                      org.bouncycastle.asn1.cms.AttributeTable&nbsp;unsignedAttr,                      java.security.Provider&nbsp;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&nbsp;key,                      byte[]&nbsp;subjectKeyID,                      java.lang.String&nbsp;digestOID,                      <A HREF="../../../org/bouncycastle/cms/CMSAttributeTableGenerator.html" title="interface in org.bouncycastle.cms">CMSAttributeTableGenerator</A>&nbsp;signedAttrGenerator,                      <A HREF="../../../org/bouncycastle/cms/CMSAttributeTableGenerator.html" title="interface in org.bouncycastle.cms">CMSAttributeTableGenerator</A>&nbsp;unsignedAttrGenerator,                      java.security.Provider&nbsp;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&nbsp;key,                      byte[]&nbsp;subjectKeyID,                      java.lang.String&nbsp;digestOID,                      <A HREF="../../../org/bouncycastle/cms/CMSAttributeTableGenerator.html" title="interface in org.bouncycastle.cms">CMSAttributeTableGenerator</A>&nbsp;signedAttrGenerator,                      <A HREF="../../../org/bouncycastle/cms/CMSAttributeTableGenerator.html" title="interface in org.bouncycastle.cms">CMSAttributeTableGenerator</A>&nbsp;unsignedAttrGenerator,                      java.lang.String&nbsp;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&nbsp;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&nbsp;out,                                 boolean&nbsp;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&nbsp;out,                                 boolean&nbsp;encapsulate,                                 java.io.OutputStream&nbsp;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&nbsp;out,                                 java.lang.String&nbsp;signedContentType,                                 boolean&nbsp;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&nbsp;out,                                 java.lang.String&nbsp;signedContentType,                                 boolean&nbsp;encapsulate,                                 java.io.OutputStream&nbsp;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>&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.42</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/bouncycastle/cms/CMSSignedDataParser.html" title="class in org.bouncycastle.cms"><B>PREV CLASS</B></A>&nbsp;&nbsp;<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>  &nbsp;&nbsp;<A HREF="CMSSignedDataStreamGenerator.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="#fields_inherited_from_class_org.bouncycastle.cms.CMSSignedGenerator">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;FIELD&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 + =
减小字号Ctrl + -
显示快捷键?