📄 authenticationcredential.html
字号:
<A NAME="AuthenticationCredential(net.jxta.peergroup.PeerGroup, net.jxta.document.Element)"><!-- --></A><H3>AuthenticationCredential</H3><PRE>public <B>AuthenticationCredential</B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> peergroup, <A HREF="../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> root)</PRE><DL><DD>Creates new AuthenticationCredential<P><DT><B>Parameters:</B><DD><CODE>peergroup</CODE> - The peergroup context in which this AuthenticationCredential is created.<DD><CODE>root</CODE> - the document containing the serialized representation of the AuthenticationCredential.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getPeerGroupID()"><!-- --></A><H3>getPeerGroupID</H3><PRE>public <A HREF="../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> <B>getPeerGroupID</B>()</PRE><DL><DD>Returns the peerGroupID associated with this credential <p/>AuthenticationCredentials are created in the context of a PeerGroup though they are generally independant of peergroups. The intent is that the AuthenticationCredential will be passed to the MembershipService service of the same peergroup as the AuthenticationCredenitals.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/jxta/credential/Credential.html#getPeerGroupID()">getPeerGroupID</A></CODE> in interface <CODE><A HREF="../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>PeerGroupID associated with this AuthenticationCredential.</DL></DD></DL><HR><A NAME="getPeerID()"><!-- --></A><H3>getPeerID</H3><PRE>public <A HREF="../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> <B>getPeerID</B>()</PRE><DL><DD>Returns the peerID associated with this credential<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/jxta/credential/Credential.html#getPeerID()">getPeerID</A></CODE> in interface <CODE><A HREF="../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the peerID associated with this credential</DL></DD></DL><HR><A NAME="getSourceService()"><!-- --></A><H3>getSourceService</H3><PRE>public <A HREF="../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A> <B>getSourceService</B>()</PRE><DL><DD>Returns the service which generated this credential.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/jxta/credential/Credential.html#getSourceService()">getSourceService</A></CODE> in interface <CODE><A HREF="../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the service which generated this credential.</DL></DD></DL><HR><A NAME="isExpired()"><!-- --></A><H3>isExpired</H3><PRE>public boolean <B>isExpired</B>()</PRE><DL><DD>If true then the credential is expired. Some credential implementations may never epxire. <p/>AuthenticationCredential are never expired. The Authenticator will determine the true validity from the included identity info.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/jxta/credential/Credential.html#isExpired()">isExpired</A></CODE> in interface <CODE><A HREF="../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isValid()"><!-- --></A><H3>isValid</H3><PRE>public boolean <B>isValid</B>()</PRE><DL><DD>Returns true if this credential is currently valid. <p/>AuthenticationCredential are always valid, the Authenticator will determine the true validity from the included identity info.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/jxta/credential/Credential.html#isValid()">isValid</A></CODE> in interface <CODE><A HREF="../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if the credential is currently valid, otherwise false.</DL></DD></DL><HR><A NAME="getSubject()"><!-- --></A><H3>getSubject</H3><PRE>public java.lang.Object <B>getSubject</B>()</PRE><DL><DD>Returns the subject of this credential. The Objects returned <b>must</b> support <CODE>Object.equals(Object)</CODE> and <CODE>Object.hashCode()</CODE>. <p/>There is no straightforward mechansim for identifying the subject unfortunately.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/jxta/credential/Credential.html#getSubject()">getSubject</A></CODE> in interface <CODE><A HREF="../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the subject of the credential as an abstract object.</DL></DD></DL><HR><A NAME="getDocument(net.jxta.document.MimeMediaType)"><!-- --></A><H3>getDocument</H3><PRE>public <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>getDocument</B>(<A HREF="../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> as) throws java.lang.Exception</PRE><DL><DD>Write credential into a document. as is a mime media-type specification and provides the form of the document which is being requested. Two standard document forms are defined. "text/text" encodes the document in a form nice for printing out and "text/xml" which provides an XML format.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/jxta/credential/Credential.html#getDocument(net.jxta.document.MimeMediaType)">getDocument</A></CODE> in interface <CODE><A HREF="../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>as</CODE> - The mime media type of the encoding format being requested.<DT><B>Returns:</B><DD>the StructuredDocument which represents this credential.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - When errors occur.</DL></DD></DL><HR><A NAME="getMethod()"><!-- --></A><H3>getMethod</H3><PRE>public java.lang.String <B>getMethod</B>()</PRE><DL><DD>Returns the authentication method which this AuthenticationCredential will be requesting when it is provided to a Membership Service during the "Apply" operation.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>String containing the authentication method being requested.</DL></DD></DL><HR><A NAME="setMethod(java.lang.String)"><!-- --></A><H3>setMethod</H3><PRE>protected void <B>setMethod</B>(java.lang.String authenticationMethod)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getIdentityInfo()"><!-- --></A><H3>getIdentityInfo</H3><PRE>public <A HREF="../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> <B>getIdentityInfo</B>()</PRE><DL><DD>Returns the StructuredDocument Element containing the identity information which was originally provided when this AuthenticationCredential was created.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>StructuredDocument Element containing the identity information which was originally provided when this AuthenticationCredential was created.</DL></DD></DL><HR><A NAME="handleElement(net.jxta.document.TextElement)"><!-- --></A><H3>handleElement</H3><PRE>protected boolean <B>handleElement</B>(<A HREF="../../../net/jxta/document/TextElement.html" title="interface in net.jxta.document">TextElement</A> elem)</PRE><DL><DD>Process an individual element from the document.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element to be processed.<DT><B>Returns:</B><DD>true if the element was recognized, otherwise false.</DL></DD></DL><HR><A NAME="initialize(net.jxta.document.Element)"><!-- --></A><H3>initialize</H3><PRE>protected void <B>initialize</B>(<A HREF="../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> root)</PRE><DL><DD>Intialize from a portion of a structured document.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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/AuthenticationCredential.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-all.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>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="AuthenticationCredential.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | 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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -