|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Credential
Credentials provide the basic mechanisms for securely 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()
Returns true if this credential is expired. |
boolean |
isValid()
Returns true if this credential is currently valid. |
Method Detail |
---|
ID getPeerGroupID()
ID getPeerID()
Service getSourceService()
boolean isExpired()
true
if this credential is expired. Some credential
implementations may never expire.
true
if this credential is expired, otherwise
false
.boolean isValid()
true
if this credential is currently valid.
true
if the credential is currently valid, otherwise
false
.Object getSubject()
Object.equals(Object)
and Object.hashCode()
.
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.
asMimeType
- MimeMediaType format representation requested
Exception
- if an error occurs
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |