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

📄 x509v1certificategenerator.html

📁 java非对称加密的源代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/x509/X509V1CertificateGenerator.html#setNotBefore(java.util.Date)">setNotBefore</A></B>(java.util.Date&nbsp;date)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/x509/X509V1CertificateGenerator.html#setPublicKey(java.security.PublicKey)">setPublicKey</A></B>(java.security.PublicKey&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/x509/X509V1CertificateGenerator.html#setSerialNumber(java.math.BigInteger)">setSerialNumber</A></B>(java.math.BigInteger&nbsp;serialNumber)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the serial number for the certificate.</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/x509/X509V1CertificateGenerator.html#setSignatureAlgorithm(java.lang.String)">setSignatureAlgorithm</A></B>(java.lang.String&nbsp;signatureAlgorithm)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the signature algorithm.</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/x509/X509V1CertificateGenerator.html#setSubjectDN(javax.security.auth.x500.X500Principal)">setSubjectDN</A></B>(javax.security.auth.x500.X500Principal&nbsp;subject)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the subject distinguished name.</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/x509/X509V1CertificateGenerator.html#setSubjectDN(org.bouncycastle.asn1.x509.X509Name)">setSubjectDN</A></B>(<A HREF="../../../org/bouncycastle/asn1/x509/X509Name.html" title="class in org.bouncycastle.asn1.x509">X509Name</A>&nbsp;subject)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the subject distinguished name.</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="X509V1CertificateGenerator()"><!-- --></A><H3>X509V1CertificateGenerator</H3><PRE>public <B>X509V1CertificateGenerator</B>()</PRE><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="reset()"><!-- --></A><H3>reset</H3><PRE>public void <B>reset</B>()</PRE><DL><DD>reset the generator<P><DD><DL></DL></DD></DL><HR><A NAME="setSerialNumber(java.math.BigInteger)"><!-- --></A><H3>setSerialNumber</H3><PRE>public void <B>setSerialNumber</B>(java.math.BigInteger&nbsp;serialNumber)</PRE><DL><DD>set the serial number for the certificate.<P><DD><DL></DL></DD></DL><HR><A NAME="setIssuerDN(javax.security.auth.x500.X500Principal)"><!-- --></A><H3>setIssuerDN</H3><PRE>public void <B>setIssuerDN</B>(javax.security.auth.x500.X500Principal&nbsp;issuer)</PRE><DL><DD>Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate.<P><DD><DL></DL></DD></DL><HR><A NAME="setIssuerDN(org.bouncycastle.asn1.x509.X509Name)"><!-- --></A><H3>setIssuerDN</H3><PRE>public void <B>setIssuerDN</B>(<A HREF="../../../org/bouncycastle/asn1/x509/X509Name.html" title="class in org.bouncycastle.asn1.x509">X509Name</A>&nbsp;issuer)</PRE><DL><DD>Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate.<P><DD><DL></DL></DD></DL><HR><A NAME="setNotBefore(java.util.Date)"><!-- --></A><H3>setNotBefore</H3><PRE>public void <B>setNotBefore</B>(java.util.Date&nbsp;date)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setNotAfter(java.util.Date)"><!-- --></A><H3>setNotAfter</H3><PRE>public void <B>setNotAfter</B>(java.util.Date&nbsp;date)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setSubjectDN(javax.security.auth.x500.X500Principal)"><!-- --></A><H3>setSubjectDN</H3><PRE>public void <B>setSubjectDN</B>(javax.security.auth.x500.X500Principal&nbsp;subject)</PRE><DL><DD>Set the subject distinguished name. The subject describes the entity associated with the public key.<P><DD><DL></DL></DD></DL><HR><A NAME="setSubjectDN(org.bouncycastle.asn1.x509.X509Name)"><!-- --></A><H3>setSubjectDN</H3><PRE>public void <B>setSubjectDN</B>(<A HREF="../../../org/bouncycastle/asn1/x509/X509Name.html" title="class in org.bouncycastle.asn1.x509">X509Name</A>&nbsp;subject)</PRE><DL><DD>Set the subject distinguished name. The subject describes the entity associated with the public key.<P><DD><DL></DL></DD></DL><HR><A NAME="setPublicKey(java.security.PublicKey)"><!-- --></A><H3>setPublicKey</H3><PRE>public void <B>setPublicKey</B>(java.security.PublicKey&nbsp;key)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setSignatureAlgorithm(java.lang.String)"><!-- --></A><H3>setSignatureAlgorithm</H3><PRE>public void <B>setSignatureAlgorithm</B>(java.lang.String&nbsp;signatureAlgorithm)</PRE><DL><DD>Set the signature algorithm. This can be either a name or an OID, names are treated as case insensitive.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>signatureAlgorithm</CODE> - string representation of the algorithm name.</DL></DD></DL><HR><A NAME="generateX509Certificate(java.security.PrivateKey)"><!-- --></A><H3>generateX509Certificate</H3><PRE>public java.security.cert.X509Certificate <B>generateX509Certificate</B>(java.security.PrivateKey&nbsp;key)                                                           throws java.lang.SecurityException,                                                                  java.security.SignatureException,                                                                  java.security.InvalidKeyException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use generate(key, "BC")</I><P><DD>generate an X509 certificate, based on the current issuer and subject using the default provider "BC".<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE><DD><CODE>java.security.SignatureException</CODE><DD><CODE>java.security.InvalidKeyException</CODE></DL></DD></DL><HR><A NAME="generateX509Certificate(java.security.PrivateKey, java.security.SecureRandom)"><!-- --></A><H3>generateX509Certificate</H3><PRE>public java.security.cert.X509Certificate <B>generateX509Certificate</B>(java.security.PrivateKey&nbsp;key,                                                                  java.security.SecureRandom&nbsp;random)                                                           throws java.lang.SecurityException,                                                                  java.security.SignatureException,                                                                  java.security.InvalidKeyException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use generate(key, random, "BC")</I><P><DD>generate an X509 certificate, based on the current issuer and subject using the default provider "BC" and the passed in source of randomness<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE>

⌨️ 快捷键说明

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