|
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.PasswdMembership
The passwd membership service provides a Membership implementation which is based on a password scheme similar to the unix /etc/passwd system. It is intended mostly as an example of a simple Membership service and not as a practical Membership service.
Inner Class Summary | |
class |
PasswdMembership.PasswdAuthenticator
The authenticator associated with the password membership service. |
Constructor Summary | |
PasswdMembership()
|
Method Summary | |
net.jxta.membership.Authenticator |
apply(net.jxta.credential.AuthenticationCredential application)
Request the necessary credentials to join the group with which this policy is associated. |
net.jxta.document.Advertisement |
getAdvertisement()
Returns the ServiceAdvertisement assocaiated with this Service. |
java.util.Enumeration |
getAuthCredentials()
Returns an enumeration of the AuthencticationCredentials which were used as the basis for the current set of credentials. |
java.util.Enumeration |
getCurrentCredentials()
Returns an enumeration of the current credentials associated with this peer within in this peergroup. |
net.jxta.service.Service |
getInterface()
Returns the interface for this service. |
net.jxta.peergroup.PeerGroup |
getPeerGroup()
Returns the peer group assocaited with this Membership service. |
void |
init(net.jxta.peergroup.PeerGroup group,
net.jxta.document.Advertisement myAdv)
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. |
static java.lang.String |
makePsswd(java.lang.String source)
This is the method used to make the password strings. |
void |
resign()
Leave the group to which this policy 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 PasswdMembership()
Method Detail |
public void init(net.jxta.peergroup.PeerGroup group, net.jxta.document.Advertisement myAdv) throws net.jxta.exception.PeerGroupException
myAdv
- The Advertisement for this service from the PeerGroupAdvertisement.group
- PeerGroup this service is started frompublic net.jxta.service.Service getInterface()
public net.jxta.document.Advertisement getAdvertisement()
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.membership.Authenticator apply(net.jxta.credential.AuthenticationCredential application) throws net.jxta.exception.PeerGroupException, net.jxta.exception.ProtocolNotSupportedException
application
- The AuthenticationCredential containing the authentication method being
requested and any identity information which is required to initialize the
specified authentication method.public 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 object.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.public static java.lang.String makePsswd(java.lang.String source)
source
- the string to encode
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |