📄 x509v1certificategenerator.html
字号:
</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/x509/X509V1CertificateGenerator.html#setNotBefore(java.util.Date)">setNotBefore</A></B>(java.util.Date date)</CODE><BR> </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/x509/X509V1CertificateGenerator.html#setPublicKey(java.security.PublicKey)">setPublicKey</A></B>(java.security.PublicKey key)</CODE><BR> </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/x509/X509V1CertificateGenerator.html#setSerialNumber(java.math.BigInteger)">setSerialNumber</A></B>(java.math.BigInteger serialNumber)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/bouncycastle/x509/X509V1CertificateGenerator.html#setSignatureAlgorithm(java.lang.String)">setSignatureAlgorithm</A></B>(java.lang.String signatureAlgorithm)</CODE><BR> Set the signature algorithm.</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/x509/X509V1CertificateGenerator.html#setSubjectDN(javax.security.auth.x500.X500Principal)">setSubjectDN</A></B>(javax.security.auth.x500.X500Principal subject)</CODE><BR> Set the subject distinguished name.</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/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> subject)</CODE><BR> Set the subject distinguished name.</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="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 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 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> 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 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 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 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> 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 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 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 key) throws java.lang.SecurityException, java.security.SignatureException, java.security.InvalidKeyException</PRE><DL><DD><B>Deprecated.</B> <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 key, java.security.SecureRandom random) throws java.lang.SecurityException, java.security.SignatureException, java.security.InvalidKeyException</PRE><DL><DD><B>Deprecated.</B> <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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -