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

📄 identity.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</DD><DD><DL><DT><B>Returns:</B><DD>general information about this identity.<DT><B>See Also: </B><DD><A HREF="../../java/security/Identity.html#setInfo(java.lang.String)"><CODE>setInfo(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="addCertificate(java.security.Certificate)"><!-- --></A><H3>addCertificate</H3><PRE>public void <B>addCertificate</B>(<A HREF="../../java/security/Certificate.html">Certificate</A>&nbsp;certificate)                    throws <A HREF="../../java/security/KeyManagementException.html">KeyManagementException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Adds a certificate for this identity. If the identity has a public key, the public key in the certificate must be the same, and if the identity does not have a public key, the identity's public key is set to be that specified in the certificate. <p>First, if there is a security manager, its <code>checkSecurityAccess</code>  method is called with <code>"addIdentityCertificate"</code>  as its argument to see if it's ok to add a certificate.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>certificate</CODE> - the certificate to be added.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/KeyManagementException.html">KeyManagementException</A></CODE> - if the certificate is not valid, if the public key in the certificate being added conflicts with this identity's public key, or if another exception occurs.<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  adding a certificate.<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="removeCertificate(java.security.Certificate)"><!-- --></A><H3>removeCertificate</H3><PRE>public void <B>removeCertificate</B>(<A HREF="../../java/security/Certificate.html">Certificate</A>&nbsp;certificate)                       throws <A HREF="../../java/security/KeyManagementException.html">KeyManagementException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Removes a certificate from this identity. <p>First, if there is a security manager, its <code>checkSecurityAccess</code>  method is called with <code>"removeIdentityCertificate"</code>  as its argument to see if it's ok to remove a certificate.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>certificate</CODE> - the certificate to be removed.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/KeyManagementException.html">KeyManagementException</A></CODE> - if the certificate is missing, or if another exception occurs.<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  removing a certificate.<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="certificates()"><!-- --></A><H3>certificates</H3><PRE>public <A HREF="../../java/security/Certificate.html">Certificate</A>[] <B>certificates</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns a copy of all the certificates for this identity.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a copy of all the certificates for this identity.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public final boolean <B>equals</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;identity)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Tests for equality between the specified object and this identity. This first tests to see if the entities actually refer to the same object, in which case it returns true. Next, it checks to see if the entities have the same name and the same scope. If they do,  the method returns true. Otherwise, it calls  <A HREF="../../java/security/Identity.html#identityEquals(java.security.Identity)"><CODE>identityEquals</CODE></A>, which subclasses should  override.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/security/Principal.html#equals(java.lang.Object)">equals</A></CODE> in interface <CODE><A HREF="../../java/security/Principal.html">Principal</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>identity</CODE> - the object to test for equality with this identity.<DT><B>Returns:</B><DD>true if the objects are considered equal, false otherwise.<DT><B>See Also: </B><DD><A HREF="../../java/security/Identity.html#identityEquals(java.security.Identity)"><CODE>identityEquals(java.security.Identity)</CODE></A></DL></DD></DL><HR><A NAME="identityEquals(java.security.Identity)"><!-- --></A><H3>identityEquals</H3><PRE>protected boolean <B>identityEquals</B>(<A HREF="../../java/security/Identity.html">Identity</A>&nbsp;identity)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Tests for equality between the specified identity and this identity. This method should be overriden by subclasses to test for equality.  The default behavior is to return true if the names and public keys  are equal.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>identity</CODE> - the identity to test for equality with this identity.<DT><B>Returns:</B><DD>true if the identities are considered equal, false otherwise.<DT><B>See Also: </B><DD><A HREF="../../java/security/Identity.html#equals(java.lang.Object)"><CODE>equals(java.lang.Object)</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>&nbsp;<DD>Returns a short string describing this identity, telling its name and its scope (if any). <p>First, if there is a security manager, its <code>checkSecurityAccess</code>  method is called with <code>"printIdentity"</code>  as its argument to see if it's ok to return the string.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/security/Principal.html#toString()">toString</A></CODE> in interface <CODE><A HREF="../../java/security/Principal.html">Principal</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>information about this identity, such as its name and the   name of its scope (if any).<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 a string describing this identity.<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(boolean)"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>toString</B>(boolean&nbsp;detailed)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns a string representation of this identity, with optionally more details than that provided by the <code>toString</code> method without any arguments. <p>First, if there is a security manager, its <code>checkSecurityAccess</code>  method is called with <code>"printIdentity"</code>  as its argument to see if it's ok to return the string.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>detailed</CODE> - whether or not to provide detailed information.<DT><B>Returns:</B><DD>information about this identity. If <code>detailed</code> is true, then this method returns more information than that  provided by the <code>toString</code> method without any arguments.<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 a string describing this identity.<DT><B>See Also: </B><DD><A HREF="../../java/security/Identity.html#toString()"><CODE>toString()</CODE></A>, <A HREF="../../java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)"><CODE>SecurityManager.checkSecurityAccess(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns a hashcode for this identity.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/security/Principal.html#hashCode()">hashCode</A></CODE> in interface <CODE><A HREF="../../java/security/Principal.html">Principal</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a hashcode for this identity.</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/Identity.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/GuardedObject.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/security/IdentityScope.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="Identity.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 + -