📄 keyfactoryspi.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract <A HREF="../../java/security/Key.html">Key</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/security/KeyFactorySpi.html#engineTranslateKey(java.security.Key)">engineTranslateKey</A></B>(<A HREF="../../java/security/Key.html">Key</A> key)</CODE><BR> Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></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> <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="KeyFactorySpi()"><!-- --></A><H3>KeyFactorySpi</H3><PRE>public <B>KeyFactorySpi</B>()</PRE><DL></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="engineGeneratePublic(java.security.spec.KeySpec)"><!-- --></A><H3>engineGeneratePublic</H3><PRE>protected abstract <A HREF="../../java/security/PublicKey.html">PublicKey</A> <B>engineGeneratePublic</B>(<A HREF="../../java/security/spec/KeySpec.html">KeySpec</A> 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="engineGeneratePrivate(java.security.spec.KeySpec)"><!-- --></A><H3>engineGeneratePrivate</H3><PRE>protected abstract <A HREF="../../java/security/PrivateKey.html">PrivateKey</A> <B>engineGeneratePrivate</B>(<A HREF="../../java/security/spec/KeySpec.html">KeySpec</A> 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="engineGetKeySpec(java.security.Key, java.lang.Class)"><!-- --></A><H3>engineGetKeySpec</H3><PRE>protected abstract <A HREF="../../java/security/spec/KeySpec.html">KeySpec</A> <B>engineGetKeySpec</B>(<A HREF="../../java/security/Key.html">Key</A> key, <A HREF="../../java/lang/Class.html">Class</A> 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 dealt with (e.g., the given key has an unrecognized format).</DL></DD></DL><HR><A NAME="engineTranslateKey(java.security.Key)"><!-- --></A><H3>engineTranslateKey</H3><PRE>protected abstract <A HREF="../../java/security/Key.html">Key</A> <B>engineTranslateKey</B>(<A HREF="../../java/security/Key.html">Key</A> 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/KeyFactorySpi.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../java/security/KeyFactory.html"><B>PREV CLASS</B></A> <A HREF="../../java/security/KeyPair.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> <A HREF="KeyFactorySpi.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -