📄 cmsenvelopedgenerator.html
字号:
</DL></DL><HR><A NAME="CAMELLIA128_WRAP"><!-- --></A><H3>CAMELLIA128_WRAP</H3><PRE>public static final java.lang.String <B>CAMELLIA128_WRAP</B></PRE><DL><DL></DL></DL><HR><A NAME="CAMELLIA192_WRAP"><!-- --></A><H3>CAMELLIA192_WRAP</H3><PRE>public static final java.lang.String <B>CAMELLIA192_WRAP</B></PRE><DL><DL></DL></DL><HR><A NAME="CAMELLIA256_WRAP"><!-- --></A><H3>CAMELLIA256_WRAP</H3><PRE>public static final java.lang.String <B>CAMELLIA256_WRAP</B></PRE><DL><DL></DL></DL><HR><A NAME="SEED_WRAP"><!-- --></A><H3>SEED_WRAP</H3><PRE>public static final java.lang.String <B>SEED_WRAP</B></PRE><DL><DL></DL></DL><HR><A NAME="ECDH_SHA1KDF"><!-- --></A><H3>ECDH_SHA1KDF</H3><PRE>public static final java.lang.String <B>ECDH_SHA1KDF</B></PRE><DL><DL></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="CMSEnvelopedGenerator()"><!-- --></A><H3>CMSEnvelopedGenerator</H3><PRE>public <B>CMSEnvelopedGenerator</B>()</PRE><DL><DD>base constructor<P></DL><HR><A NAME="CMSEnvelopedGenerator(java.security.SecureRandom)"><!-- --></A><H3>CMSEnvelopedGenerator</H3><PRE>public <B>CMSEnvelopedGenerator</B>(java.security.SecureRandom rand)</PRE><DL><DD>constructor allowing specific source of randomness<P><DL><DT><B>Parameters:</B><DD><CODE>rand</CODE> - instance of SecureRandom to use</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="addKeyTransRecipient(java.security.cert.X509Certificate)"><!-- --></A><H3>addKeyTransRecipient</H3><PRE>public void <B>addKeyTransRecipient</B>(java.security.cert.X509Certificate cert) throws java.lang.IllegalArgumentException</PRE><DL><DD>add a recipient.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cert</CODE> - recipient's public key certificate<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is a problem with the certificate</DL></DD></DL><HR><A NAME="addKeyTransRecipient(java.security.PublicKey, byte[])"><!-- --></A><H3>addKeyTransRecipient</H3><PRE>public void <B>addKeyTransRecipient</B>(java.security.PublicKey key, byte[] subKeyId) throws java.lang.IllegalArgumentException</PRE><DL><DD>add a recipient<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the public key used by the recipient<DD><CODE>subKeyId</CODE> - the identifier for the recipient's public key<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is a problem with the key</DL></DD></DL><HR><A NAME="addKEKRecipient(javax.crypto.SecretKey, byte[])"><!-- --></A><H3>addKEKRecipient</H3><PRE>public void <B>addKEKRecipient</B>(javax.crypto.SecretKey key, byte[] keyIdentifier)</PRE><DL><DD>add a KEK recipient.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the secret key to use for wrapping<DD><CODE>keyIdentifier</CODE> - the byte string that identifies the key</DL></DD></DL><HR><A NAME="addPasswordRecipient(org.bouncycastle.cms.CMSPBEKey, java.lang.String)"><!-- --></A><H3>addPasswordRecipient</H3><PRE>public void <B>addPasswordRecipient</B>(<A HREF="../../../org/bouncycastle/cms/CMSPBEKey.html" title="class in org.bouncycastle.cms">CMSPBEKey</A> pbeKey, java.lang.String kekAlgorithmOid)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="addKeyAgreementRecipient(java.lang.String, java.security.PrivateKey, java.security.PublicKey, java.security.cert.X509Certificate, java.lang.String, java.lang.String)"><!-- --></A><H3>addKeyAgreementRecipient</H3><PRE>public void <B>addKeyAgreementRecipient</B>(java.lang.String agreementAlgorithm, java.security.PrivateKey senderPrivateKey, java.security.PublicKey senderPublicKey, java.security.cert.X509Certificate recipientCert, java.lang.String cekWrapAlgorithm, java.lang.String provider) throws java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException</PRE><DL><DD>Add a key agreement based recipient.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>agreementAlgorithm</CODE> - key agreement algorithm to use.<DD><CODE>senderPrivateKey</CODE> - private key to initialise sender side of agreement with.<DD><CODE>senderPublicKey</CODE> - sender public key to include with message.<DD><CODE>recipientCert</CODE> - recipient's public key certificate.<DD><CODE>cekWrapAlgorithm</CODE> - OID for key wrapping algorithm to use.<DD><CODE>provider</CODE> - provider to use for the agreement calculation.<DT><B>Throws:</B><DD><CODE>java.security.NoSuchProviderException</CODE> - if the specified provider cannot be found<DD><CODE>java.security.NoSuchAlgorithmException</CODE> - if the algorithm requested cannot be found<DD><CODE>java.security.InvalidKeyException</CODE> - if the keys are inappropriate for the algorithm specified</DL></DD></DL><HR><A NAME="addKeyAgreementRecipient(java.lang.String, java.security.PrivateKey, java.security.PublicKey, java.security.cert.X509Certificate, java.lang.String, java.security.Provider)"><!-- --></A><H3>addKeyAgreementRecipient</H3><PRE>public void <B>addKeyAgreementRecipient</B>(java.lang.String agreementAlgorithm, java.security.PrivateKey senderPrivateKey, java.security.PublicKey senderPublicKey, java.security.cert.X509Certificate recipientCert, java.lang.String cekWrapAlgorithm, java.security.Provider provider) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException</PRE><DL><DD>Add a key agreement based recipient.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>agreementAlgorithm</CODE> - key agreement algorithm to use.<DD><CODE>senderPrivateKey</CODE> - private key to initialise sender side of agreement with.<DD><CODE>senderPublicKey</CODE> - sender public key to include with message.<DD><CODE>recipientCert</CODE> - recipient's public key certificate.<DD><CODE>cekWrapAlgorithm</CODE> - OID for key wrapping algorithm to use.<DD><CODE>provider</CODE> - provider to use for the agreement calculation.<DT><B>Throws:</B><DD><CODE>java.security.NoSuchAlgorithmException</CODE> - if the algorithm requested cannot be found<DD><CODE>java.security.InvalidKeyException</CODE> - if the keys are inappropriate for the algorithm specified</DL></DD></DL><HR><A NAME="getAlgorithmIdentifier(java.lang.String, java.security.AlgorithmParameters)"><!-- --></A><H3>getAlgorithmIdentifier</H3><PRE>protected org.bouncycastle.asn1.x509.AlgorithmIdentifier <B>getAlgorithmIdentifier</B>(java.lang.String encryptionOID, java.security.AlgorithmParameters params) throws java.io.IOException</PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="generateParameters(java.lang.String, javax.crypto.SecretKey, java.security.Provider)"><!-- --></A><H3>generateParameters</H3><PRE>protected java.security.AlgorithmParameters <B>generateParameters</B>(java.lang.String encryptionOID, javax.crypto.SecretKey encKey, java.security.Provider encProvider) throws <A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></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/CMSEnvelopedDataStreamGenerator.html" title="class in org.bouncycastle.cms"><B>PREV CLASS</B></A> <A HREF="../../../org/bouncycastle/cms/CMSEnvelopedGenerator.RecipientInf.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/CMSEnvelopedGenerator.html" target="_top"><B>FRAMES</B></A> <A HREF="CMSEnvelopedGenerator.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -