|
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 MembershipServicelistener - the listener
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
addPropertyChangeListener in interface MembershipServicepropertyName - the property to watchlistener - the listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface MembershipServicelistener - the listener
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
removePropertyChangeListener in interface MembershipServicepropertyName - the property which was watchedlistener - the listener
public void init(PeerGroup group,
ID assignedID,
Advertisement impl)
throws PeerGroupException
init in interface ModulePeerGroupExceptionpublic Service getInterface()
getInterface in interface Servicepublic int startApp(String[] arg)
startApp in interface Modulepublic void stopApp()
stopApp in interface Modulepublic Advertisement getImplAdvertisement()
getImplAdvertisement in interface Service
public Authenticator apply(AuthenticationCredential application)
throws PeerGroupException,
ProtocolNotSupportedException
apply in interface MembershipServicePeerGroupException
ProtocolNotSupportedExceptionpublic Credential getDefaultCredential()
getDefaultCredential in interface MembershipServicepublic Enumeration getCurrentCredentials()
getCurrentCredentials in interface MembershipServicepublic Enumeration getAuthCredentials()
getAuthCredentials in interface MembershipService
public Credential join(Authenticator authenticated)
throws PeerGroupException
join in interface MembershipServicePeerGroupExceptionpublic void resign()
resign in interface MembershipService
public Credential makeCredential(Element element)
throws PeerGroupException,
Exception
makeCredential in interface MembershipServicePeerGroupException
Exception
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||