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

📄 keyfactory.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="KeyFactory(java.security.KeyFactorySpi, java.security.Provider, java.lang.String)"><!-- --></A><H3>KeyFactory</H3><PRE>protected <B>KeyFactory</B>(<A HREF="../../java/security/KeyFactorySpi.html">KeyFactorySpi</A>&nbsp;keyFacSpi,                     <A HREF="../../java/security/Provider.html">Provider</A>&nbsp;provider,                     <A HREF="../../java/lang/String.html">String</A>&nbsp;algorithm)</PRE><DL><DD>Creates a KeyFactory object.<DD><DL><DT><B>Parameters:</B><DD><CODE>keyFacSpi</CODE> - the delegate<DD><CODE>provider</CODE> - the provider<DD><CODE>algorithm</CODE> - the name of the algorithm to associate with this <tt>KeyFactory</tt></DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getInstance(java.lang.String)"><!-- --></A><H3>getInstance</H3><PRE>public static <A HREF="../../java/security/KeyFactory.html">KeyFactory</A> <B>getInstance</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;algorithm)                              throws <A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></PRE><DL><DD>Generates a KeyFactory object that implements the specified digest algorithm. If the default provider package provides an implementation of the requested digest algorithm, an instance of KeyFactory containing that implementation is returned. If the algorithm is not available in the default  package, other packages are searched.<DD><DL><DT><B>Parameters:</B><DD><CODE>algorithm</CODE> - the name of the requested key algorithm.  See Appendix A in the <a href= "../../../guide/security/CryptoSpec.html#AppA"> Java Cryptography Architecture API Specification &amp; Reference </a>  for information about standard algorithm names.<DT><B>Returns:</B><DD>a KeyFactory object for the specified algorithm.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></CODE> - if the requested algorithm is not available in the default provider package or any of the other provider packages that were searched.</DL></DD></DL><HR><A NAME="getInstance(java.lang.String, java.lang.String)"><!-- --></A><H3>getInstance</H3><PRE>public static <A HREF="../../java/security/KeyFactory.html">KeyFactory</A> <B>getInstance</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;algorithm,                                     <A HREF="../../java/lang/String.html">String</A>&nbsp;provider)                              throws <A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A>,                                     <A HREF="../../java/security/NoSuchProviderException.html">NoSuchProviderException</A></PRE><DL><DD>Generates a KeyFactory object for the specified algorithm from the specified provider.<DD><DL><DT><B>Parameters:</B><DD><CODE>algorithm</CODE> - the name of the requested key algorithm.  See Appendix A in the <a href= "../../../guide/security/CryptoSpec.html#AppA"> Java Cryptography Architecture API Specification &amp; Reference </a>  for information about standard algorithm names.<DD><CODE>provider</CODE> - the name of the provider.<DT><B>Returns:</B><DD>a KeyFactory object for the specified algorithm.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></CODE> - if the algorithm is not available from the specified provider.<DD><CODE><A HREF="../../java/security/NoSuchProviderException.html">NoSuchProviderException</A></CODE> - if the provider has not been  configured.<DT><B>See Also: </B><DD><A HREF="../../java/security/Provider.html"><CODE>Provider</CODE></A></DL></DD></DL><HR><A NAME="getProvider()"><!-- --></A><H3>getProvider</H3><PRE>public final <A HREF="../../java/security/Provider.html">Provider</A> <B>getProvider</B>()</PRE><DL><DD>Returns the provider of this key factory object.<DD><DL><DT><B>Returns:</B><DD>the provider of this key factory object</DL></DD></DL><HR><A NAME="getAlgorithm()"><!-- --></A><H3>getAlgorithm</H3><PRE>public final <A HREF="../../java/lang/String.html">String</A> <B>getAlgorithm</B>()</PRE><DL><DD>Gets the name of the algorithm  associated with this <tt>KeyFactory</tt>.<DD><DL><DT><B>Returns:</B><DD>the name of the algorithm associated with this <tt>KeyFactory</tt></DL></DD></DL><HR><A NAME="generatePublic(java.security.spec.KeySpec)"><!-- --></A><H3>generatePublic</H3><PRE>public final <A HREF="../../java/security/PublicKey.html">PublicKey</A> <B>generatePublic</B>(<A HREF="../../java/security/spec/KeySpec.html">KeySpec</A>&nbsp;keySpec)                               throws <A HREF="../../java/security/spec/InvalidKeySpecException.html">InvalidKeySpecException</A></PRE><DL><DD>Generates a public key object from the provided key specification (key material).<DD><DL><DT><B>Parameters:</B><DD><CODE>keySpec</CODE> - the specification (key material) of the public key.<DT><B>Returns:</B><DD>the public key.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/spec/InvalidKeySpecException.html">InvalidKeySpecException</A></CODE> - if the given key specification is inappropriate for this key factory to produce a public key.</DL></DD></DL><HR><A NAME="generatePrivate(java.security.spec.KeySpec)"><!-- --></A><H3>generatePrivate</H3><PRE>public final <A HREF="../../java/security/PrivateKey.html">PrivateKey</A> <B>generatePrivate</B>(<A HREF="../../java/security/spec/KeySpec.html">KeySpec</A>&nbsp;keySpec)                                 throws <A HREF="../../java/security/spec/InvalidKeySpecException.html">InvalidKeySpecException</A></PRE><DL><DD>Generates a private key object from the provided key specification (key material).<DD><DL><DT><B>Parameters:</B><DD><CODE>keySpec</CODE> - the specification (key material) of the private key.<DT><B>Returns:</B><DD>the private key.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/spec/InvalidKeySpecException.html">InvalidKeySpecException</A></CODE> - if the given key specification is inappropriate for this key factory to produce a private key.</DL></DD></DL><HR><A NAME="getKeySpec(java.security.Key, java.lang.Class)"><!-- --></A><H3>getKeySpec</H3><PRE>public final <A HREF="../../java/security/spec/KeySpec.html">KeySpec</A> <B>getKeySpec</B>(<A HREF="../../java/security/Key.html">Key</A>&nbsp;key,                                <A HREF="../../java/lang/Class.html">Class</A>&nbsp;keySpec)                         throws <A HREF="../../java/security/spec/InvalidKeySpecException.html">InvalidKeySpecException</A></PRE><DL><DD>Returns a specification (key material) of the given key object. <code>keySpec</code> identifies the specification class in which  the key material should be returned. It could, for example, be <code>DSAPublicKeySpec.class</code>, to indicate that the key material should be returned in an instance of the  <code>DSAPublicKeySpec</code> class.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key.<DD><CODE>keySpec</CODE> - the specification class in which  the key material should be returned.<DT><B>Returns:</B><DD>the underlying key specification (key material) in an instance of the requested specification class.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/spec/InvalidKeySpecException.html">InvalidKeySpecException</A></CODE> - if the requested key specification is inappropriate for the given key, or the given key cannot be processed (e.g., the given key has an unrecognized algorithm or format).</DL></DD></DL><HR><A NAME="translateKey(java.security.Key)"><!-- --></A><H3>translateKey</H3><PRE>public final <A HREF="../../java/security/Key.html">Key</A> <B>translateKey</B>(<A HREF="../../java/security/Key.html">Key</A>&nbsp;key)                       throws <A HREF="../../java/security/InvalidKeyException.html">InvalidKeyException</A></PRE><DL><DD>Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key whose provider is unknown or untrusted.<DT><B>Returns:</B><DD>the translated key.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/InvalidKeyException.html">InvalidKeyException</A></CODE> - if the given key cannot be processed by this key factory.</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/KeyFactory.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/IdentityScope.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/security/KeyFactorySpi.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="KeyFactory.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 + -