|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.membership.none.NoneMembershipService
public class NoneMembershipService
A Membership Service implementation which is intended to be used with peer groups which require no real authentication.
The none service allows you to claim any identity within the peergroup, but for peergroups which use this Membership Service method, it is likely that the identity is used only for informational purposes. A default credential with the name "nobody" is automatically available without requiring authentication by this service.
Nested Class Summary | |
---|---|
static class |
NoneMembershipService.NoneAuthenticator
Authenticator Class for the None Membership Service. |
Field Summary |
---|
Fields inherited from interface net.jxta.platform.Module |
---|
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
Constructor Summary | |
---|---|
NoneMembershipService()
default constructor. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a listener |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a listener |
Authenticator |
apply(AuthenticationCredential application)
|
Enumeration |
getAuthCredentials()
|
Enumeration |
getCurrentCredentials()
|
Credential |
getDefaultCredential()
|
Advertisement |
getImplAdvertisement()
|
Service |
getInterface()
|
void |
init(PeerGroup group,
ID assignedID,
Advertisement impl)
|
Credential |
join(Authenticator authenticated)
|
Credential |
makeCredential(Element element)
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a listener |
void |
resign()
|
int |
startApp(String[] arg)
|
void |
stopApp()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoneMembershipService() throws PeerGroupException
PeerGroupException
Method Detail |
---|
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface MembershipService
listener
- the listenerpublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
addPropertyChangeListener
in interface MembershipService
propertyName
- the property to watchlistener
- the listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface MembershipService
listener
- the listenerpublic void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
removePropertyChangeListener
in interface MembershipService
propertyName
- the property which was watchedlistener
- the listenerpublic void init(PeerGroup group, ID assignedID, Advertisement impl) throws PeerGroupException
init
in interface Module
PeerGroupException
public Service getInterface()
getInterface
in interface Service
public int startApp(String[] arg)
startApp
in interface Module
public void stopApp()
stopApp
in interface Module
public Advertisement getImplAdvertisement()
getImplAdvertisement
in interface Service
public Authenticator apply(AuthenticationCredential application) throws PeerGroupException, ProtocolNotSupportedException
apply
in interface MembershipService
PeerGroupException
ProtocolNotSupportedException
public Credential getDefaultCredential()
getDefaultCredential
in interface MembershipService
public Enumeration getCurrentCredentials()
getCurrentCredentials
in interface MembershipService
public Enumeration getAuthCredentials()
getAuthCredentials
in interface MembershipService
public Credential join(Authenticator authenticated) throws PeerGroupException
join
in interface MembershipService
PeerGroupException
public void resign()
resign
in interface MembershipService
public Credential makeCredential(Element element) throws PeerGroupException, Exception
makeCredential
in interface MembershipService
PeerGroupException
Exception
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |