Project JXTA

net.jxta.impl.membership.passwd
Class PasswdMembershipService.PasswdAuthenticator

java.lang.Object
  extended bynet.jxta.impl.membership.PasswdMembershipService.PasswdAuthenticator
      extended bynet.jxta.impl.membership.passwd.PasswdMembershipService.PasswdAuthenticator
All Implemented Interfaces:
Authenticator
Enclosing class:
PasswdMembershipService

public static final class PasswdMembershipService.PasswdAuthenticator
extends PasswdMembershipService.PasswdAuthenticator

Creates an authenticator for the passwd membership service. Anything entered into the identity info section of the Authentication credential is ignored.

HACK ALERT! THE INHERITANCE FROM net.jxta.impl.membership.PasswdMembershipService.PasswdAuthenticator IS A TOTAL HACK FOR BACKWARDS COMPATIBILITY.


Field Summary
(package private)  AuthenticationCredential application
          The Authentication which was provided to the Apply operation of the membership service.
(package private)  String password
          the password for that identity.
(package private)  PasswdMembershipService source
          The Membership Service which generated this authenticator.
(package private)  String whoami
          the identity which is being claimed
 
Constructor Summary
(package private) PasswdMembershipService.PasswdAuthenticator(PasswdMembershipService source, AuthenticationCredential application)
          Creates an authenticator for the password MembershipService service.
 
Method Summary
 String getAuth1Identity()
           
protected  String getAuth2_Password()
           
 AuthenticationCredential getAuthenticationCredential()
          
 String getMethodName()
          
 MembershipService getSourceService()
          
 boolean isReadyForJoin()
          
 void setAuth1Identity(String who)
           
 void setAuth2_Password(String secret)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

PasswdMembershipService source
The Membership Service which generated this authenticator.


application

AuthenticationCredential application
The Authentication which was provided to the Apply operation of the membership service.


whoami

String whoami
the identity which is being claimed


password

String password
the password for that identity.

Constructor Detail

PasswdMembershipService.PasswdAuthenticator

PasswdMembershipService.PasswdAuthenticator(PasswdMembershipService source,
                                            AuthenticationCredential application)
Creates an authenticator for the password MembershipService service. The only method supported is "PasswdAuthentication". Anything entered into the identity info section of the Authentication credential is ignored.

Parameters:
source - The instance of the password membership service which created this authenticator.
application - The Anything entered into the identity info section of the Authentication credential is ignored.
Method Detail

getSourceService

public MembershipService getSourceService()


isReadyForJoin

public boolean isReadyForJoin()


getMethodName

public String getMethodName()


getAuthenticationCredential

public AuthenticationCredential getAuthenticationCredential()


setAuth1Identity

public void setAuth1Identity(String who)
Specified by:
setAuth1Identity in class PasswdMembershipService.PasswdAuthenticator

getAuth1Identity

public String getAuth1Identity()
Specified by:
getAuth1Identity in class PasswdMembershipService.PasswdAuthenticator

setAuth2_Password

public void setAuth2_Password(String secret)
Specified by:
setAuth2_Password in class PasswdMembershipService.PasswdAuthenticator

getAuth2_Password

protected String getAuth2_Password()
Specified by:
getAuth2_Password in class PasswdMembershipService.PasswdAuthenticator

JXTA J2SE