|
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 MembershipService 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 MembershipService service during the Apply operation. |
ID |
getPeerGroupID()
Returns the PeerGroupID associated with this AuthenticationCredential. |
ID |
getPeerID()
Returns the PeerID associated with this AuthenticationCredential. |
MembershipService |
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 MembershipService 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 MembershipService Service.| Method Detail |
public MembershipService getSourceService()
getSourceService in interface Credentialpublic ID getPeerGroupID()
getPeerGroupID in interface Credentialpublic ID getPeerID()
getPeerID in interface Credentialpublic java.lang.String getMethod()
public Element getIdentityInfo()
public StructuredDocument getDocument(MimeMediaType as)
throws java.lang.Exception
getDocument in interface Credentialas - The mime media type of the encoding format being requested.java.lang.Exception - When errors occur.
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||