|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.membership.Membership | +--net.jxta.impl.membership.NullMembership
The null membership service provides a Membership implementation which is is intended to be used with peer groups which require no real authentication. The null service allows you to claim any identity within the peergroup, but for peergroups which use this Membership method, it is likely that the identity is used only for informational purposes.
Inner Class Summary | |
class |
NullMembership.NullAuthenticator
|
Constructor Summary | |
NullMembership()
|
Method Summary | |
net.jxta.membership.Authenticator |
apply(net.jxta.credential.AuthenticationCredential application)
Request the necessary credentials to join the group with which this service is associated. |
net.jxta.document.Advertisement |
getAdvertisement()
Returns the advertisement for that service. |
java.util.Enumeration |
getAuthCredentials()
Returns the current credentials for this peer. |
java.util.Enumeration |
getCurrentCredentials()
Returns the current credential for this peer. |
net.jxta.service.Service |
getInterface()
Service objects are not manipulated directly to protect usage of the service. |
net.jxta.peergroup.PeerGroup |
getPeerGroup()
|
void |
init(net.jxta.peergroup.PeerGroup group,
net.jxta.document.Advertisement sadv)
Initialize the application |
net.jxta.credential.Credential |
join(net.jxta.membership.Authenticator authenticated)
Join the group by virtue of the completed authentication provided. |
net.jxta.credential.Credential |
makeCredential(net.jxta.document.Element element)
Given a fragment of a StructuredDocument, reconstruct a Credential object from that fragment. |
void |
resign()
Leave the group to which this service is attached. |
int |
startApp(java.lang.String[] arg)
Supply arguments and starts this service if it hadn't started by itself. |
void |
stopApp()
Ask this service to stop. |
Methods inherited from class net.jxta.membership.Membership |
getName |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public NullMembership()
Method Detail |
public void init(net.jxta.peergroup.PeerGroup group, net.jxta.document.Advertisement sadv) throws net.jxta.exception.PeerGroupException
group
- PeerGroup this application is started frompublic net.jxta.service.Service getInterface()
public int startApp(java.lang.String[] arg)
arg
- A table of strings arguments.public void stopApp()
public net.jxta.peergroup.PeerGroup getPeerGroup()
public net.jxta.document.Advertisement getAdvertisement()
public net.jxta.membership.Authenticator apply(net.jxta.credential.AuthenticationCredential application) throws net.jxta.exception.PeerGroupException, net.jxta.exception.ProtocolNotSupportedException
credential
- the original credential that justify the issuance of the
the appropriate authenticatorpublic java.util.Enumeration getCurrentCredentials() throws net.jxta.exception.PeerGroupException
public java.util.Enumeration getAuthCredentials() throws net.jxta.exception.PeerGroupException
public net.jxta.credential.Credential join(net.jxta.membership.Authenticator authenticated) throws net.jxta.exception.PeerGroupException
authenticated
- the completed authentication.public void resign() throws net.jxta.exception.PeerGroupException
public net.jxta.credential.Credential makeCredential(net.jxta.document.Element element) throws net.jxta.exception.PeerGroupException, java.lang.Exception
element
- The StructuredDocument fragment to use for building the
credential.
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |