JXTA

net.jxta.impl.membership.none
Class NoneMembershipService.NoneAuthenticator

java.lang.Object
  extended by net.jxta.impl.membership.none.NoneMembershipService.NoneAuthenticator
All Implemented Interfaces:
Authenticator
Enclosing class:
NoneMembershipService

public static final class NoneMembershipService.NoneAuthenticator
extends Object
implements Authenticator

Authenticator Class for the None Membership Service. Pre-filled in and ready for join().


Field Summary
(package private)  AuthenticationCredential application
           
(package private)  MembershipService source
           
(package private)  String whoami
           
 
Constructor Summary
NoneMembershipService.NoneAuthenticator(NoneMembershipService source, AuthenticationCredential application)
          Creates an authenticator for the null membership service.
 
Method Summary
 String getAuth1Identity()
           
 AuthenticationCredential getAuthenticationCredential()
          Return the Authentication Credential associated with this authenticator, if any.
 String getMethodName()
          Returns the name of this authentication method.
 MembershipService getSourceService()
          Returns the service which generated this authenticator.
 boolean isReadyForJoin()
          Returns true if this Authenticator has been satisfied and is ready for submission to MembershipService.join(Authenticator).
 void setAuth1Identity(String who)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

MembershipService source

application

AuthenticationCredential application

whoami

String whoami
Constructor Detail

NoneMembershipService.NoneAuthenticator

NoneMembershipService.NoneAuthenticator(NoneMembershipService source,
                                        AuthenticationCredential application)
Creates an authenticator for the null membership service. Anything entered into the identity info section of the Authentication credential is ignored.

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

getSourceService

public MembershipService getSourceService()
Returns the service which generated this authenticator.

Specified by:
getSourceService in interface Authenticator
Returns:
the MembershipService service associated with this authenticator.

isReadyForJoin

public boolean isReadyForJoin()
Returns true if this Authenticator has been satisfied and is ready for submission to MembershipService.join(Authenticator). Some authenticators may behave asynchronously and this method can be used to determine if the authentication process has completed.

This method provides no distinction between incomplete authentication and failed authentication.

This implementation is always ready for join()

Specified by:
isReadyForJoin in interface Authenticator
Returns:
true if the authenticator object is complete and ready for submitting to the Membership Service service for MembershipService.join(Authenticator), otherwise false.
See Also:
MembershipService.join(Authenticator)

getMethodName

public String getMethodName()
Returns the name of this authentication method. This should be the same name which was used in the Authentication credential.

Specified by:
getMethodName in interface Authenticator
Returns:
String containing the name of this authentication method.

getAuthenticationCredential

public AuthenticationCredential getAuthenticationCredential()
Return the Authentication Credential associated with this authenticator, if any.

Specified by:
getAuthenticationCredential in interface Authenticator
Returns:
the AutheticationCredential which was provided to the MembershipService.apply(AuthenticationCredential).

setAuth1Identity

public void setAuth1Identity(String who)

getAuth1Identity

public String getAuth1Identity()

JXSE