Project JXTA

net.jxta.impl.access.always
Class AlwaysAccessService

java.lang.Object
  extended bynet.jxta.impl.access.always.AlwaysAccessService
All Implemented Interfaces:
AccessService, Module, Service

public class AlwaysAccessService
extends Object
implements AccessService

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.

See Also:
AccessService

Nested Class Summary
 
Nested classes inherited from class 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()
          {@inheritDoc}
 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

group

PeerGroup group

implAdvertisement

ModuleImplAdvertisement implAdvertisement
Constructor Detail

AlwaysAccessService

public AlwaysAccessService()
Default Constructor

Method Detail

init

public void init(PeerGroup group,
                 ID assignedID,
                 Advertisement implAdv)
          throws PeerGroupException

Specified by:
init in interface Module
Throws:
PeerGroupException

startApp

public int startApp(String[] args)

Specified by:
startApp in interface Module

stopApp

public void stopApp()

Specified by:
stopApp in interface Module

getImplAdvertisement

public Advertisement getImplAdvertisement()

Specified by:
getImplAdvertisement in interface Service

getInterface

public Service getInterface()

Specified by:
getInterface in interface Service

getPeerGroup

PeerGroup getPeerGroup()
{@inheritDoc}


doAccessCheck

public AccessService.AccessResult doAccessCheck(PrivilegedOperation op,
                                                Credential cred)

Specified by:
doAccessCheck in interface AccessService

newPrivilegedOperation

public PrivilegedOperation newPrivilegedOperation(Object subject,
                                                  Credential offerer)

Specified by:
newPrivilegedOperation in interface AccessService

newPrivilegedOperation

public PrivilegedOperation newPrivilegedOperation(Element source)

Specified by:
newPrivilegedOperation in interface AccessService

JXTA J2SE