|
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
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
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 Advertisement getImplAdvertisement()
getImplAdvertisement
in interface Service
public int startApp(String[] arg)
startApp
in interface Module
public void stopApp()
stopApp
in interface Module
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
public 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 |