📄 nullmembershipservice.html
字号:
</DD></DL><HR><A NAME="getImplAdvertisement()"><!-- --></A><H3>getImplAdvertisement</H3><PRE>public <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> <B>getImplAdvertisement</B>()</PRE><DL><DD>Returns the advertisment for this service.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/service/Service.html#getImplAdvertisement()">getImplAdvertisement</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Advertisement the advertisement.</DL></DD></DL><HR><A NAME="apply(net.jxta.credential.AuthenticationCredential)"><!-- --></A><H3>apply</H3><PRE>public <A HREF="../../../../net/jxta/membership/Authenticator.html" title="interface in net.jxta.membership">Authenticator</A> <B>apply</B>(<A HREF="../../../../net/jxta/credential/AuthenticationCredential.html" title="class in net.jxta.credential">AuthenticationCredential</A> application) throws <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A>, <A HREF="../../../../net/jxta/exception/ProtocolNotSupportedException.html" title="class in net.jxta.exception">ProtocolNotSupportedException</A></PRE><DL><DD>Request the necessary credentials to join the group with which this service is associated.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/membership/MembershipService.html#apply(net.jxta.credential.AuthenticationCredential)">apply</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/membership/MembershipService.html" title="interface in net.jxta.membership">MembershipService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>application</CODE> - The authenticationCredential associated with this membership application. See <A HREF="../../../../net/jxta/credential/AuthenticationCredential.html" title="class in net.jxta.credential"><CODE>AuthenticationCredential</CODE></A> for more information.<DT><B>Returns:</B><DD>PeerGroupCredential the desired credential<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></CODE> - Thrown in the event of errors. This exception spec is currently a placeholder and needs to be narrowed.<DD><CODE><A HREF="../../../../net/jxta/exception/ProtocolNotSupportedException.html" title="class in net.jxta.exception">ProtocolNotSupportedException</A></CODE> - if the authentication method requested in the application is not supported by this service.</DL></DD></DL><HR><A NAME="getDefaultCredential()"><!-- --></A><H3>getDefaultCredential</H3><PRE>public <A HREF="../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A> <B>getDefaultCredential</B>()</PRE><DL><DD>Returns the default credential for this peer. This is normally the "nobody" credential which is provided by default.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/membership/MembershipService.html#getDefaultCredential()">getDefaultCredential</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/membership/MembershipService.html" title="interface in net.jxta.membership">MembershipService</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getCurrentCredentials()"><!-- --></A><H3>getCurrentCredentials</H3><PRE>public java.util.Enumeration <B>getCurrentCredentials</B>()</PRE><DL><DD>Returns the current credentials for this peer. The elements of the enumeration are all of types derived from "Credential". Before <A HREF="../../../../net/jxta/membership/MembershipService.html#join(net.jxta.membership.Authenticator)"><CODE>join()</CODE></A> or after <A HREF="../../../../net/jxta/membership/MembershipService.html#resign()"><CODE>MembershipService.resign()</CODE></A> are called, this enumeration will consist of a single element, a default credential which is usually has the identity "nobody". This credential always exists, but likely offers few, if any, privledges within this group.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/membership/MembershipService.html#getCurrentCredentials()">getCurrentCredentials</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/membership/MembershipService.html" title="interface in net.jxta.membership">MembershipService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Enumeration of the Credentials currently associated with this peer for this peergroup.</DL></DD></DL><HR><A NAME="getAuthCredentials()"><!-- --></A><H3>getAuthCredentials</H3><PRE>public java.util.Enumeration <B>getAuthCredentials</B>()</PRE><DL><DD>Returns the current credentials for this peer. The elements of the enumeration are all of types derived from <A HREF="../../../../net/jxta/credential/AuthenticationCredential.html" title="class in net.jxta.credential"><CODE>AuthenticationCredential</CODE></A><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/membership/MembershipService.html#getAuthCredentials()">getAuthCredentials</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/membership/MembershipService.html" title="interface in net.jxta.membership">MembershipService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Enumeration of the AuthenticationCredentials which were used to establish the current identities.</DL></DD></DL><HR><A NAME="join(net.jxta.membership.Authenticator)"><!-- --></A><H3>join</H3><PRE>public <A HREF="../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A> <B>join</B>(<A HREF="../../../../net/jxta/membership/Authenticator.html" title="interface in net.jxta.membership">Authenticator</A> authenticated) throws <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></PRE><DL><DD>Join the group by virtue of the completed authentication provided.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/membership/MembershipService.html#join(net.jxta.membership.Authenticator)">join</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/membership/MembershipService.html" title="interface in net.jxta.membership">MembershipService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>authenticated</CODE> - the completed authentication.<DT><B>Returns:</B><DD>Credential the credential for this completed authentication.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></CODE> - Thrown in the event of errors. This exception spec is currently a placeholder and needs to be narrowed.</DL></DD></DL><HR><A NAME="resign()"><!-- --></A><H3>resign</H3><PRE>public void <B>resign</B>() throws <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></PRE><DL><DD>Resign all credentials which were previously gained through prior <A HREF="../../../../net/jxta/membership/MembershipService.html#join(net.jxta.membership.Authenticator)"><CODE>join()</CODE></A> operations.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/membership/MembershipService.html#resign()">resign</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/membership/MembershipService.html" title="interface in net.jxta.membership">MembershipService</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></CODE> - Thrown in the event of errors. This exception spec is currently a placeholder and needs to be narrowed.</DL></DD></DL><HR><A NAME="makeCredential(net.jxta.document.Element)"><!-- --></A><H3>makeCredential</H3><PRE>public <A HREF="../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A> <B>makeCredential</B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> element) throws <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A>, java.lang.Exception</PRE><DL><DD>Given a fragment of a StructuredDocument, reconstruct a Credential object from that fragment.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/membership/MembershipService.html#makeCredential(net.jxta.document.Element)">makeCredential</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/membership/MembershipService.html" title="interface in net.jxta.membership">MembershipService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - The StructuredDocument fragment to use for building the credential.<DT><B>Returns:</B><DD>Credential The created credential<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - Thrown in the event of errors. This exception spec is currently a placeholder and needs to be narrowed.<DD><CODE><A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></CODE> - Thrown in the event of errors. This exception spec is currently a placeholder and needs to be narrowed.</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/NullMembershipService.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 <A HREF="../../../../net/jxta/impl/membership/NullMembershipService.NullAuthenticator.html" title="class in net.jxta.impl.membership"><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="NullMembershipService.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: <A HREF="#nested_class_summary">NESTED</A> | 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 + -