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

📄 certificatemanager.html

📁 开源软件openfire的API文件。进行openfire的二次开发所必需的工具。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<HR><A NAME="createSigningRequest(java.security.cert.X509Certificate, java.security.PrivateKey)"><!-- --></A><H3>createSigningRequest</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>createSigningRequest</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/cert/X509Certificate.html" title="class or interface in java.security.cert">X509Certificate</A>&nbsp;cert,                                          <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/PrivateKey.html" title="class or interface in java.security">PrivateKey</A>&nbsp;privKey)                                   throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>Creates and returns the content of a new singing request for the specified certificate. Signing requests are required by Certificate Authorities as part of their signing process. The signing request contains information about the certificate issuer, subject DN, subject alternative names and public key. Private keys are not included. After the Certificate Authority verified and signed the certificate a new certificate is going to be returned. Use <A HREF="../../../org/jivesoftware/util/CertificateManager.html#installReply(java.security.KeyStore, java.security.KeyStore, java.lang.String, java.lang.String, java.io.InputStream, boolean, boolean)"><CODE>installReply(java.security.KeyStore, java.security.KeyStore, String, String, java.io.InputStream, boolean, boolean)</CODE></A> to import the CA reply.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cert</CODE> - the certificate to create a signing request.<DD><CODE>privKey</CODE> - the private key of the certificate.<DT><B>Returns:</B><DD>the content of a new singing request for the specified certificate.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE></DL></DD></DL><HR><A NAME="installReply(java.security.KeyStore, java.security.KeyStore, java.lang.String, java.lang.String, java.io.InputStream, boolean, boolean)"><!-- --></A><H3>installReply</H3><PRE>public static boolean <B>installReply</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A>&nbsp;keyStore,                                   <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A>&nbsp;trustStore,                                   <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;keyPassword,                                   <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;alias,                                   <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;inputStream,                                   boolean&nbsp;trustCACerts,                                   boolean&nbsp;validateRoot)                            throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>Installs the Certificate Authority reply returned as part of the signing request. The certificate being signed will get its certificate chain updated with the imported certificate(s). An exception will be thrown if the replied certificate does not match a local certificate or if the signing authority is not known by the server (i.e. keystore and truststore files). When <tt>trustCACerts</tt> is set to <tt>true</tt> then certificates present in the truststore file will be used to verify the identity of the entity signing the certificate. In case the reply is composed of more than one certificate then you can also specify if you want to verify that the root certificate in the chain can be trusted.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>keyStore</CODE> - key store where the certificate is stored.<DD><CODE>trustStore</CODE> - key store where ca certificates are stored.<DD><CODE>keyPassword</CODE> - password of the keystore.<DD><CODE>alias</CODE> - the alias of the existing certificate being signed.<DD><CODE>inputStream</CODE> - the stream containing the CA reply.<DD><CODE>trustCACerts</CODE> - true if certificates present in the truststore file will be used to verify the        identity of the entity signing the certificate.<DD><CODE>validateRoot</CODE> - true if you want to verify that the root certificate in the chain can be trusted        based on the truststore.<DT><B>Returns:</B><DD>true if the CA reply was successfully processed.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE></DL></DD></DL><HR><A NAME="installCert(java.security.KeyStore, java.security.KeyStore, java.lang.String, java.lang.String, java.io.InputStream, java.lang.String, java.io.InputStream, boolean, boolean)"><!-- --></A><H3>installCert</H3><PRE>public static boolean <B>installCert</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A>&nbsp;keyStore,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A>&nbsp;trustStore,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;keyPassword,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;alias,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;pkInputStream,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;passPhrase,                                  <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;inputStream,                                  boolean&nbsp;trustCACerts,                                  boolean&nbsp;validateRoot)                           throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>Imports a new signed certificate and its private key into the keystore. The certificate input stream may contain the signed certificate as well as its CA chain.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>keyStore</CODE> - key store where the certificate will be stored.<DD><CODE>trustStore</CODE> - key store where ca certificates are stored.<DD><CODE>keyPassword</CODE> - password of the keystore.<DD><CODE>alias</CODE> - the alias of the the new signed certificate.<DD><CODE>pkInputStream</CODE> - the stream containing the private key.<DD><CODE>passPhrase</CODE> - is the password phrased used when creating the private key.<DD><CODE>inputStream</CODE> - the stream containing the signed certificate.<DD><CODE>trustCACerts</CODE> - true if certificates present in the truststore file will be used to verify the        identity of the entity signing the certificate.<DD><CODE>validateRoot</CODE> - true if you want to verify that the root certificate in the chain can be trusted        based on the truststore.<DT><B>Returns:</B><DD>true if the certificate was successfully imported.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE> - if no certificates were found in the inputStream.</DL></DD></DL><HR><A NAME="addListener(org.jivesoftware.util.CertificateEventListener)"><!-- --></A><H3>addListener</H3><PRE>public static void <B>addListener</B>(<A HREF="../../../org/jivesoftware/util/CertificateEventListener.html" title="interface in org.jivesoftware.util">CertificateEventListener</A>&nbsp;listener)</PRE><DL><DD>Registers a listener to receive events.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener.</DL></DD></DL><HR><A NAME="removeListener(org.jivesoftware.util.CertificateEventListener)"><!-- --></A><H3>removeListener</H3><PRE>public static void <B>removeListener</B>(<A HREF="../../../org/jivesoftware/util/CertificateEventListener.html" title="interface in org.jivesoftware.util">CertificateEventListener</A>&nbsp;listener)</PRE><DL><DD>Unregisters a listener to receive events.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener.</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>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jivesoftware/util/CertificateEventListener.html" title="interface in org.jivesoftware.util"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jivesoftware/util/ClassUtils.html" title="class in org.jivesoftware.util"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?org/jivesoftware/util/CertificateManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="CertificateManager.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;FIELD&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><i>Copyright &copy; 2003-2008 Jive Software.</i></BODY></HTML>

⌨️ 快捷键说明

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