|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.access.always.AlwaysAccessService
public class AlwaysAccessService
A minimal AccessService
implementation.
doAccessCheck
will return PERMITTED
to all
queries when provided any valid credential and operation.
If the subject of the Credential or the operation is equivalent to the
String "DENY" then the operation will be DISALLOWED
.
AccessService
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.jxta.access.AccessService |
---|
AccessService.AccessResult |
Field Summary | |
---|---|
(package private) PeerGroup |
group
|
(package private) ModuleImplAdvertisement |
implAdvertisement
|
Fields inherited from interface net.jxta.platform.Module |
---|
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
Constructor Summary | |
---|---|
AlwaysAccessService()
Default Constructor |
Method Summary | |
---|---|
AccessService.AccessResult |
doAccessCheck(PrivilegedOperation op,
Credential cred)
|
Advertisement |
getImplAdvertisement()
|
Service |
getInterface()
|
(package private) PeerGroup |
getPeerGroup()
|
void |
init(PeerGroup group,
ID assignedID,
Advertisement implAdv)
|
PrivilegedOperation |
newPrivilegedOperation(Element source)
|
PrivilegedOperation |
newPrivilegedOperation(Object subject,
Credential offerer)
|
int |
startApp(String[] args)
|
void |
stopApp()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
PeerGroup group
ModuleImplAdvertisement implAdvertisement
Constructor Detail |
---|
public AlwaysAccessService()
Method Detail |
---|
public void init(PeerGroup group, ID assignedID, Advertisement implAdv) throws PeerGroupException
init
in interface Module
PeerGroupException
public int startApp(String[] args)
startApp
in interface Module
public void stopApp()
stopApp
in interface Module
public Advertisement getImplAdvertisement()
getImplAdvertisement
in interface Service
public Service getInterface()
getInterface
in interface Service
PeerGroup getPeerGroup()
public AccessService.AccessResult doAccessCheck(PrivilegedOperation op, Credential cred)
doAccessCheck
in interface AccessService
public PrivilegedOperation newPrivilegedOperation(Object subject, Credential offerer)
newPrivilegedOperation
in interface AccessService
public PrivilegedOperation newPrivilegedOperation(Element source)
newPrivilegedOperation
in interface AccessService
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |