📄 signer.html
字号:
<TD><CODE><A HREF="../../java/security/Identity.html#addCertificate(java.security.Certificate)">addCertificate</A>, <A HREF="../../java/security/Identity.html#certificates()">certificates</A>, <A HREF="../../java/security/Identity.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/security/Identity.html#getInfo()">getInfo</A>, <A HREF="../../java/security/Identity.html#getName()">getName</A>, <A HREF="../../java/security/Identity.html#getPublicKey()">getPublicKey</A>, <A HREF="../../java/security/Identity.html#getScope()">getScope</A>, <A HREF="../../java/security/Identity.html#hashCode()">hashCode</A>, <A HREF="../../java/security/Identity.html#identityEquals(java.security.Identity)">identityEquals</A>, <A HREF="../../java/security/Identity.html#removeCertificate(java.security.Certificate)">removeCertificate</A>, <A HREF="../../java/security/Identity.html#setInfo(java.lang.String)">setInfo</A>, <A HREF="../../java/security/Identity.html#setPublicKey(java.security.PublicKey)">setPublicKey</A>, <A HREF="../../java/security/Identity.html#toString(boolean)">toString</A></CODE></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#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</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#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="Signer()"><!-- --></A><H3>Signer</H3><PRE>protected <B>Signer</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Creates a signer. This constructor should only be used for serialization.</DL><HR><A NAME="Signer(java.lang.String)"><!-- --></A><H3>Signer</H3><PRE>public <B>Signer</B>(<A HREF="../../java/lang/String.html">String</A> name)</PRE><DL><DD><B>Deprecated.</B> <DD>Creates a signer with the specified identity name.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the identity name.</DL></DD></DL><HR><A NAME="Signer(java.lang.String, java.security.IdentityScope)"><!-- --></A><H3>Signer</H3><PRE>public <B>Signer</B>(<A HREF="../../java/lang/String.html">String</A> name, <A HREF="../../java/security/IdentityScope.html">IdentityScope</A> scope) throws <A HREF="../../java/security/KeyManagementException.html">KeyManagementException</A></PRE><DL><DD><B>Deprecated.</B> <DD>Creates a signer with the specified identity name and scope.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the identity name.<DD><CODE>scope</CODE> - the scope of the identity.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/KeyManagementException.html">KeyManagementException</A></CODE> - if there is already an identity with the same name in the scope.</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="getPrivateKey()"><!-- --></A><H3>getPrivateKey</H3><PRE>public <A HREF="../../java/security/PrivateKey.html">PrivateKey</A> <B>getPrivateKey</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns this signer's private key. <p>First, if there is a security manager, its <code>checkSecurityAccess</code> method is called with <code>"getSignerPrivateKey"</code> as its argument to see if it's ok to return the private key.<DD><DL><DT><B>Returns:</B><DD>this signer's private key, or null if the private key has not yet been set.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/SecurityException.html">SecurityException</A></CODE> - if a security manager exists and its <code>checkSecurityAccess</code> method doesn't allow returning the private key.<DT><B>See Also: </B><DD><A HREF="../../java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)"><CODE>SecurityManager.checkSecurityAccess(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="setKeyPair(java.security.KeyPair)"><!-- --></A><H3>setKeyPair</H3><PRE>public final void <B>setKeyPair</B>(<A HREF="../../java/security/KeyPair.html">KeyPair</A> pair) throws <A HREF="../../java/security/InvalidParameterException.html">InvalidParameterException</A>, <A HREF="../../java/security/KeyException.html">KeyException</A></PRE><DL><DD><B>Deprecated.</B> <DD>Sets the key pair (public key and private key) for this signer. <p>First, if there is a security manager, its <code>checkSecurityAccess</code> method is called with <code>"setSignerKeyPair"</code> as its argument to see if it's ok to set the key pair.<DD><DL><DT><B>Parameters:</B><DD><CODE>pair</CODE> - an initialized key pair.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/InvalidParameterException.html">InvalidParameterException</A></CODE> - if the key pair is not properly initialized.<DD><CODE><A HREF="../../java/security/KeyException.html">KeyException</A></CODE> - if the key pair cannot be set for any other reason.<DD><CODE><A HREF="../../java/lang/SecurityException.html">SecurityException</A></CODE> - if a security manager exists and its <code>checkSecurityAccess</code> method doesn't allow setting the key pair.<DT><B>See Also: </B><DD><A HREF="../../java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)"><CODE>SecurityManager.checkSecurityAccess(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns a string of information about the signer.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/security/Identity.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../java/security/Identity.html">Identity</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string of information about the signer.</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/Signer.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/SignedObject.html"><B>PREV CLASS</B></A> <A HREF="../../java/security/UnresolvedPermission.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="Signer.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 + -