Project JXTA

net.jxta.credential
Interface Credential

All Known Implementing Classes:
AuthenticationCredential

public interface Credential

interface to define a credential

Since:
JXTA 1.0

Method Summary
 StructuredDocument getDocument(MimeMediaType as)
          Write credential into a document.
 PeerGroupID getPeerGroupID()
          Returns the peerGroupID associated with this credential
 PeerID getPeerID()
          Returns the peerID associated with this credential
 Membership getSourceService()
          Returns the service which generated this credential.
 

Method Detail

getSourceService

public Membership getSourceService()
Returns the service which generated this credential.
Returns:
the service which generated this credential.

getPeerGroupID

public PeerGroupID getPeerGroupID()
Returns the peerGroupID associated with this credential
Returns:
the peerGroupID associated with this credential

getPeerID

public PeerID getPeerID()
Returns the peerID associated with this credential
Returns:
the peerID associated with this credential

getDocument

public StructuredDocument getDocument(MimeMediaType as)
                               throws java.lang.Exception
Write credential into a document. as is a mime media-type specification and provides the form of the document which is being requested. Two standard document forms are defined. "text/text" encodes the document in a form nice for printing out and "text/xml" which provides an XML format.
Parameters:
as - The mime media type of the encoding format being requested.
Returns:
the StructuredDocument which represents this credential.
Throws:
java.lang.Exception - When errors occur.

Project JXTA