|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.credential.AuthenticationCredential
Authenication credentials are used by the JXTA Membership services as the basis for applications for peergroup membership. The AuthenticationCredential provides two important pieces of inforamtion, the authetication method being requested and the identity information which will be provided to that authentation method. Not all authentication methods use the identity information.
Constructor Summary | |
AuthenticationCredential(PeerGroup peergroup,
java.lang.String method,
Element indentityInfo)
Creates new AuthenticationCredential |
Method Summary | |
StructuredDocument |
getDocument(MimeMediaType as)
Write credential into a document. |
Element |
getIdentityInfo()
Returns the StructuredDocument Element containing the identity information which was originally provided when this AuthenticationCredential was created. |
java.lang.String |
getMethod()
Returns the AuthenticationMethod which this AuthenticationCredential will be requesting when it is provided to a Membership service during the Apply operation. |
PeerGroupID |
getPeerGroupID()
Returns the PeerGroupID associated with this AuthenticationCredential. |
PeerID |
getPeerID()
Returns the PeerID associated with this AuthenticationCredential. |
Membership |
getSourceService()
Always reutrns null since this type of credential is not associated with a particular membership service. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AuthenticationCredential(PeerGroup peergroup, java.lang.String method, Element indentityInfo)
peergroup
- The peergroup context in which this AuthenticationCredential is created.method
- The authentication method which will be requested when the
AuthentiationCredential is provided to the peergroup Membership Service.indentityInfo
- Optional additional information about the identity being requested which is used
by the authentication method. This information is passed to the authentication
method during the apply operation of the Membership Service.Method Detail |
public Membership getSourceService()
public PeerGroupID getPeerGroupID()
public PeerID getPeerID()
public java.lang.String getMethod()
public Element getIdentityInfo()
public StructuredDocument getDocument(MimeMediaType as) throws java.lang.Exception
as
- The mime media type of the encoding format being requested.
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |