Project JXTA

net.jxta.impl.membership
Class PasswdMembershipService

java.lang.Object
  extended bynet.jxta.impl.membership.PasswdMembershipService

public class PasswdMembershipService
extends Object

The passwd membership service provides a Membership Service implementation which is based on a password scheme similar to the unix /etc/passwd system.

See Also:
MembershipService

Nested Class Summary
static class PasswdMembershipService.PasswdAuthenticator
           
 
Field Summary
static ModuleSpecID passwordMembershipSpecID
          Well known service specification identifier: password membership
 
Constructor Summary
PasswdMembershipService()
           
 
Method Summary
static String makePsswd(String source)
          This is the method used to make the password strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passwordMembershipSpecID

public static final ModuleSpecID passwordMembershipSpecID
Well known service specification identifier: password membership

Constructor Detail

PasswdMembershipService

public PasswdMembershipService()
Method Detail

makePsswd

public static String makePsswd(String source)
This is the method used to make the password strings. We only provide one way encoding since we can compare the encoded strings.

FIXME 20010402bondolo@jxta.org : switch to use the standard crypt(3) algorithm for encoding the passwords. The current algorithm has been breakable since ancient times, crypt(3) is also weak, but harder to break.

Parameters:
source - the string to encode
Returns:
String the encoded version of the password.

JXTA J2SE