Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

net.jxta.access
Interface AccessService  view AccessService download AccessService.java

All Superinterfaces:
net.jxta.platform.Module, net.jxta.service.Service

public interface AccessService
extends net.jxta.service.Service

The Access Service is used by JXTA Applications and Services to determine if specific operations are permitted for a particular identity.

Each Access Service implementation provides a mechanism for determining if, for a given operation and identity, the operation is permitted.


Nested Class Summary
static class AccessService.AccessResult
          The result of an access check.
 
Field Summary
 
Fields inherited from interface net.jxta.platform.Module
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK
 
Method Summary
 AccessService.AccessResult doAccessCheck(net.jxta.credential.PrivilegedOperation op, net.jxta.credential.Credential cred)
          Determine if a priviledged operation is permitted for a given identitiy.
 net.jxta.credential.PrivilegedOperation newPrivilegedOperation(net.jxta.document.Element source)
          Read a priviledged operation from a portion of a structured document.
 net.jxta.credential.PrivilegedOperation newPrivilegedOperation(java.lang.Object subject, net.jxta.credential.Credential offerer)
          Create a new priviledged operation with the specified subject.
 
Methods inherited from interface net.jxta.service.Service
getImplAdvertisement, getInterface
 
Methods inherited from interface net.jxta.platform.Module
init, startApp, stopApp
 

Method Detail

doAccessCheck

public AccessService.AccessResult doAccessCheck(net.jxta.credential.PrivilegedOperation op,
                                                net.jxta.credential.Credential cred)
Determine if a priviledged operation is permitted for a given identitiy.


newPrivilegedOperation

public net.jxta.credential.PrivilegedOperation newPrivilegedOperation(java.lang.Object subject,
                                                                      net.jxta.credential.Credential offerer)
Create a new priviledged operation with the specified subject. Each operation is also associated with an identity, the offerer. Generally the priviledged operation is cryptographically signed by the offerer.


newPrivilegedOperation

public net.jxta.credential.PrivilegedOperation newPrivilegedOperation(net.jxta.document.Element source)
Read a priviledged operation from a portion of a structured document.