Name

Authenticator

Synopsis

Membership services use classes that implement this interface to process the credentials of a peer attempting to join the service; it is the application in the membership process. The membership service returns an Authenticator object from its apply( ) method; the peer then fills out the object and passes it back to the join( ) method of the membership service.

The mechanics for filling out the Authenticator object will vary due to the specific policy of the membership service. In general, each Authenticator type will contain a number of setter methods that the peer must use to fill out the membership application.

public interface Authenticator {
// Public Instance Methods
   public abstract net.jxta.credential.AuthenticationCredential getAuthenticationCredential();  
   public abstract String getMethodName();  
   public abstract MembershipService getSourceService();  
   public abstract boolean isReadyForJoin();  
}

Passed To

MembershipService.join()

Returned By

MembershipService.apply()

Get JXTA in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.