net.jxta.access
Interface AccessService
- All Superinterfaces:
- Module, Service
- public interface AccessService
- extends 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.
doAccessCheck
public AccessService.AccessResult doAccessCheck(PrivilegedOperation op,
Credential cred)
- Determine if a priviledged operation is permitted for a given identitiy.
- Parameters:
op
- the operation which is being requested.cred
- the identity which is requesting.
- Returns:
- the result of the access check.
newPrivilegedOperation
public PrivilegedOperation newPrivilegedOperation(Object subject,
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.
- Parameters:
subject
- The subject of the operation. This usually identifies
what operation is being requested.offerer
- The identity which is offering the operation.
- Returns:
- The priviledged operation object
- See Also:
Credential
newPrivilegedOperation
public PrivilegedOperation newPrivilegedOperation(Element source)
- Read a priviledged operation from a portion of a structured document.
- Parameters:
source
- The root of the document portion containing the serialized
representation of the priviledged operation.
- Returns:
- The priviledged operation object.