|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.membership.passwd.PasswdMembershipService
public class PasswdMembershipService
The passwd membership service provides a Membership Service implementation
which is based on a password scheme similar to the unix
/etc/passwd system.
MembershipService| Nested Class Summary | |
|---|---|
static class |
PasswdMembershipService.PasswdAuthenticator
Creates an authenticator for the passwd membership service. |
static class |
PasswdMembershipService.PasswdCredential
This class provides the sub-class of Credential which is associated with the password membership service. |
| Field Summary | |
|---|---|
static ModuleSpecID |
passwordMembershipSpecID
Well known service specification identifier: password membership |
| Fields inherited from interface net.jxta.platform.Module |
|---|
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
| Constructor Summary | |
|---|---|
PasswdMembershipService()
Default constructor. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ModuleSpecID passwordMembershipSpecID
| Constructor Detail |
|---|
public PasswdMembershipService()
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 Advertisement getImplAdvertisement()
getImplAdvertisement in interface Servicepublic int startApp(String[] arg)
startApp in interface Modulepublic void stopApp()
stopApp in interface Module
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
Exceptionpublic static String makePsswd(String source)
source - the string to encode
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||