|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Credentials provide the basic mechanisms for securly establishing and communicating identity within JXTA. Credentials have three different roles within JXTA:
AuthenticationCredential
implementation is specific to its associated
Authenticator
. Authentication
Credentials are normally created by constructing a document which follows
a schema provided by the authentication method.PrivilegedOperation
and an
identity credential along with the request. The remote peer determines if
the operation is permitted for the specified identity and if it is permitted,
completes the operation.<xs:complexType name="Cred"> <xs:all> </xs:all> </xs:complexType>
Method Summary | |
StructuredDocument |
getDocument(MimeMediaType asMimeType)
Write credential into a document. |
ID |
getPeerGroupID()
Returns the peerGroupID associated with this credential |
ID |
getPeerID()
Returns the peerID associated with this credential |
Service |
getSourceService()
Returns the service which generated this credential. |
Object |
getSubject()
Returns the subject of this credential. |
boolean |
isExpired()
If true then the credential is expired. |
boolean |
isValid()
Returns true if this credential is currently valid. |
Method Detail |
public ID getPeerGroupID()
public ID getPeerID()
public Service getSourceService()
public boolean isExpired()
public boolean isValid()
public Object getSubject()
Object.equals(Object)
and Object.hashCode()
.
public StructuredDocument getDocument(MimeMediaType asMimeType) throws Exception
asMimeType
is a mime
media-type specification and provides the form of the document which is
being requested. Two standard document forms are defined.
"text/plain"
encodes the document in a "pretty-print"
format for human viewing and "text/xml" which provides an
XML format.
Depending on the credential format this document may be
cryptographically signed to prevent alteration.
- Parameters:
asMimeType
- MimeMediaType format representation requested
- Returns:
- Document the document to be used in the construction
- Throws:
Exception
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |