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

📄 keystorespi.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 key (only useful if the protected key is of type <code>java.security.PrivateKey</code>).<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/KeyStoreException.html">KeyStoreException</A></CODE> - if this operation fails.</DL></DD></DL><HR><A NAME="engineSetCertificateEntry(java.lang.String, java.security.cert.Certificate)"><!-- --></A><H3>engineSetCertificateEntry</H3><PRE>public abstract void <B>engineSetCertificateEntry</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;alias,                                               <A HREF="../../java/security/cert/Certificate.html">Certificate</A>&nbsp;cert)                                        throws <A HREF="../../java/security/KeyStoreException.html">KeyStoreException</A></PRE><DL><DD>Assigns the given certificate to the given alias. <p>If the given alias already exists in this keystore and identifies a <i>trusted certificate entry</i>, the certificate associated with it is overridden by the given certificate.<DD><DL><DT><B>Parameters:</B><DD><CODE>alias</CODE> - the alias name<DD><CODE>cert</CODE> - the certificate<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/KeyStoreException.html">KeyStoreException</A></CODE> - if the given alias already exists and does not identify a <i>trusted certificate entry</i>, or this operation fails for some other reason.</DL></DD></DL><HR><A NAME="engineDeleteEntry(java.lang.String)"><!-- --></A><H3>engineDeleteEntry</H3><PRE>public abstract void <B>engineDeleteEntry</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;alias)                                throws <A HREF="../../java/security/KeyStoreException.html">KeyStoreException</A></PRE><DL><DD>Deletes the entry identified by the given alias from this keystore.<DD><DL><DT><B>Parameters:</B><DD><CODE>alias</CODE> - the alias name<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/KeyStoreException.html">KeyStoreException</A></CODE> - if the entry cannot be removed.</DL></DD></DL><HR><A NAME="engineAliases()"><!-- --></A><H3>engineAliases</H3><PRE>public abstract <A HREF="../../java/util/Enumeration.html">Enumeration</A> <B>engineAliases</B>()</PRE><DL><DD>Lists all the alias names of this keystore.<DD><DL><DT><B>Returns:</B><DD>enumeration of the alias names</DL></DD></DL><HR><A NAME="engineContainsAlias(java.lang.String)"><!-- --></A><H3>engineContainsAlias</H3><PRE>public abstract boolean <B>engineContainsAlias</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;alias)</PRE><DL><DD>Checks if the given alias exists in this keystore.<DD><DL><DT><B>Parameters:</B><DD><CODE>alias</CODE> - the alias name<DT><B>Returns:</B><DD>true if the alias exists, false otherwise</DL></DD></DL><HR><A NAME="engineSize()"><!-- --></A><H3>engineSize</H3><PRE>public abstract int <B>engineSize</B>()</PRE><DL><DD>Retrieves the number of entries in this keystore.<DD><DL><DT><B>Returns:</B><DD>the number of entries in this keystore</DL></DD></DL><HR><A NAME="engineIsKeyEntry(java.lang.String)"><!-- --></A><H3>engineIsKeyEntry</H3><PRE>public abstract boolean <B>engineIsKeyEntry</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;alias)</PRE><DL><DD>Returns true if the entry identified by the given alias is a <i>key entry</i>, and false otherwise.<DD><DL><DT><B>Parameters:</B><DD><CODE>alias</CODE> - the alias for the keystore entry to be checked<DT><B>Returns:</B><DD>true if the entry identified by the given alias is a <i>key entry</i>, false otherwise.</DL></DD></DL><HR><A NAME="engineIsCertificateEntry(java.lang.String)"><!-- --></A><H3>engineIsCertificateEntry</H3><PRE>public abstract boolean <B>engineIsCertificateEntry</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;alias)</PRE><DL><DD>Returns true if the entry identified by the given alias is a <i>trusted certificate entry</i>, and false otherwise.<DD><DL><DT><B>Parameters:</B><DD><CODE>alias</CODE> - the alias for the keystore entry to be checked<DT><B>Returns:</B><DD>true if the entry identified by the given alias is a <i>trusted certificate entry</i>, false otherwise.</DL></DD></DL><HR><A NAME="engineGetCertificateAlias(java.security.cert.Certificate)"><!-- --></A><H3>engineGetCertificateAlias</H3><PRE>public abstract <A HREF="../../java/lang/String.html">String</A> <B>engineGetCertificateAlias</B>(<A HREF="../../java/security/cert/Certificate.html">Certificate</A>&nbsp;cert)</PRE><DL><DD>Returns the (alias) name of the first keystore entry whose certificate matches the given certificate. <p>This method attempts to match the given certificate with each keystore entry. If the entry being considered is a <i>trusted certificate entry</i>, the given certificate is compared to that entry's certificate. If the entry being considered is a <i>key entry</i>, the given certificate is compared to the first element of that entry's certificate chain (if a chain exists).<DD><DL><DT><B>Parameters:</B><DD><CODE>cert</CODE> - the certificate to match with.<DT><B>Returns:</B><DD>the (alias) name of the first entry with matching certificate, or null if no such entry exists in this keystore.</DL></DD></DL><HR><A NAME="engineStore(java.io.OutputStream, char[])"><!-- --></A><H3>engineStore</H3><PRE>public abstract void <B>engineStore</B>(<A HREF="../../java/io/OutputStream.html">OutputStream</A>&nbsp;stream,                                 char[]&nbsp;password)                          throws <A HREF="../../java/io/IOException.html">IOException</A>,                                 <A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A>,                                 <A HREF="../../java/security/cert/CertificateException.html">CertificateException</A></PRE><DL><DD>Stores this keystore to the given output stream, and protects its integrity with the given password.<DD><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - the output stream to which this keystore is written.<DD><CODE>password</CODE> - the password to generate the keystore integrity check<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if there was an I/O problem with data<DD><CODE><A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></CODE> - if the appropriate data integrity algorithm could not be found<DD><CODE><A HREF="../../java/security/cert/CertificateException.html">CertificateException</A></CODE> - if any of the certificates included in the keystore data could not be stored</DL></DD></DL><HR><A NAME="engineLoad(java.io.InputStream, char[])"><!-- --></A><H3>engineLoad</H3><PRE>public abstract void <B>engineLoad</B>(<A HREF="../../java/io/InputStream.html">InputStream</A>&nbsp;stream,                                char[]&nbsp;password)                         throws <A HREF="../../java/io/IOException.html">IOException</A>,                                <A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A>,                                <A HREF="../../java/security/cert/CertificateException.html">CertificateException</A></PRE><DL><DD>Loads the keystore from the given input stream. <p>If a password is given, it is used to check the integrity of the keystore data. Otherwise, the integrity of the keystore is not checked.<DD><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - the input stream from which the keystore is loaded<DD><CODE>password</CODE> - the (optional) password used to check the integrity of the keystore.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if there is an I/O or format problem with the keystore data<DD><CODE><A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></CODE> - if the algorithm used to check the integrity of the keystore cannot be found<DD><CODE><A HREF="../../java/security/cert/CertificateException.html">CertificateException</A></CODE> - if any of the certificates in the keystore could not be loaded</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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="class-use/KeyStoreSpi.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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-files/index-1.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>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../java/security/KeyStore.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/security/MessageDigest.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="KeyStoreSpi.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&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><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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