📄 identity.html
字号:
<BR> <B>Deprecated.</B> Returns a hashcode for this identity.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/security/Identity.html#identityEquals(java.security.Identity)">identityEquals</A></B>(<A HREF="../../java/security/Identity.html">Identity</A> identity)</CODE><BR> <B>Deprecated.</B> Tests for equality between the specified identity and this identity.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/security/Identity.html#removeCertificate(java.security.Certificate)">removeCertificate</A></B>(<A HREF="../../java/security/Certificate.html">Certificate</A> certificate)</CODE><BR> <B>Deprecated.</B> Removes a certificate from this identity.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/security/Identity.html#setInfo(java.lang.String)">setInfo</A></B>(<A HREF="../../java/lang/String.html">String</A> info)</CODE><BR> <B>Deprecated.</B> Specifies a general information string for this identity.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/security/Identity.html#setPublicKey(java.security.PublicKey)">setPublicKey</A></B>(<A HREF="../../java/security/PublicKey.html">PublicKey</A> key)</CODE><BR> <B>Deprecated.</B> Sets this identity's public key.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/security/Identity.html#toString()">toString</A></B>()</CODE><BR> <B>Deprecated.</B> Returns a short string describing this identity, telling its name and its scope (if any).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/security/Identity.html#toString(boolean)">toString</A></B>(boolean detailed)</CODE><BR> <B>Deprecated.</B> Returns a string representation of this identity, with optionally more details than that provided by the <code>toString</code> method without any arguments.</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="Identity()"><!-- --></A><H3>Identity</H3><PRE>protected <B>Identity</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Constructor for serialization only.</DL><HR><A NAME="Identity(java.lang.String, java.security.IdentityScope)"><!-- --></A><H3>Identity</H3><PRE>public <B>Identity</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>Constructs an identity with the specified 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><HR><A NAME="Identity(java.lang.String)"><!-- --></A><H3>Identity</H3><PRE>public <B>Identity</B>(<A HREF="../../java/lang/String.html">String</A> name)</PRE><DL><DD><B>Deprecated.</B> <DD>Constructs an identity with the specified name and no scope.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the identity name.</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="getName()"><!-- --></A><H3>getName</H3><PRE>public final <A HREF="../../java/lang/String.html">String</A> <B>getName</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns this identity's name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/security/Principal.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../java/security/Principal.html">Principal</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name of this identity.</DL></DD></DL><HR><A NAME="getScope()"><!-- --></A><H3>getScope</H3><PRE>public final <A HREF="../../java/security/IdentityScope.html">IdentityScope</A> <B>getScope</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns this identity's scope.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the scope of this identity.</DL></DD></DL><HR><A NAME="getPublicKey()"><!-- --></A><H3>getPublicKey</H3><PRE>public <A HREF="../../java/security/PublicKey.html">PublicKey</A> <B>getPublicKey</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns this identity's public key.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the public key for this identity.</DL></DD></DL><HR><A NAME="setPublicKey(java.security.PublicKey)"><!-- --></A><H3>setPublicKey</H3><PRE>public void <B>setPublicKey</B>(<A HREF="../../java/security/PublicKey.html">PublicKey</A> key) throws <A HREF="../../java/security/KeyManagementException.html">KeyManagementException</A></PRE><DL><DD><B>Deprecated.</B> <DD>Sets this identity's public key. The old key and all of this identity's certificates are removed by this operation. <p>First, if there is a security manager, its <code>checkSecurityAccess</code> method is called with <code>"setIdentityPublicKey"</code> as its argument to see if it's ok to set the public key.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the public key for this identity.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/KeyManagementException.html">KeyManagementException</A></CODE> - if another identity in the identity's scope has the same 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 setting the public 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="setInfo(java.lang.String)"><!-- --></A><H3>setInfo</H3><PRE>public void <B>setInfo</B>(<A HREF="../../java/lang/String.html">String</A> info)</PRE><DL><DD><B>Deprecated.</B> <DD>Specifies a general information string for this identity. <p>First, if there is a security manager, its <code>checkSecurityAccess</code> method is called with <code>"setIdentityInfo"</code> as its argument to see if it's ok to specify the information string.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - the information string.<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 setting the information string.<DT><B>See Also: </B><DD><A HREF="../../java/security/Identity.html#getInfo()"><CODE>getInfo()</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="getInfo()"><!-- --></A><H3>getInfo</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getInfo</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns general information previously specified for this identity.<DD><DL></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -