Name

Credential

Synopsis

Objects that implement this interface provide credentials to the membership service (and, conceivably, to other services). The membership service uses credentials to authenticate peers that want to join a peergroup.

Credentials are represented as structured documents; information about the credentials can be retrieved from these documents. In addition, the peer and peergroup IDs can be retrieved directly from the credentials.

public interface Credential {
// Public Instance Methods
   public abstract net.jxta.document.StructuredDocument getDocument(net.jxta.document.MimeMediaType as)
       throws Exception;
   public abstract net.jxta.id.ID getPeerGroupID();  
   public abstract net.jxta.id.ID getPeerID();  
   public abstract net.jxta.membership.MembershipService getSourceService();
}

Implementations

AuthenticationCredential

Returned By

net.jxta.membership.MembershipService.{join(), makeCredential()}

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.