Class AlwaysAccessService
package: src.net.jxta.impl.access.always
public class AlwaysAccessService
Implements:
AccessService
A minimal net.jxta.access.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:
net.jxta.access.AccessService
Inner Class Summary
private final class
   Operation for the Always Access Service.
 
Field Summary
Credential
String
PeerGroup
ModuleImplAdvertisement
private final static Logger
   log4J Logger
 
Constructor Summary
public
   Default Constructor
 
protected
AlwaysOperation(AlwaysAccessService source, Element root)
protected
AlwaysOperation(AlwaysAccessService source, String op, Credential offerer)
Method Summary
public StructuredDocument
getDocument(MimeMediaType as)
   {@inheritDoc}
 
public Credential
   {@inheritDoc}
 
public ID
   {@inheritDoc}
 
public ID
   {@inheritDoc}
 
public Service
   {@inheritDoc}
 
public Object
   {@inheritDoc}
 
protected boolean
handleElement(TextElement elem)
   Process an individual element from the document.
 
protected void
initialize(Element root)
   Intialize from a portion of a structured document.
 
public boolean
   {@inheritDoc}

AlwaysOperation are always valid.

 
public boolean
   {@inheritDoc}

AlwaysOperation are always valid.

 
public AccessResult
doAccessCheck(PrivilegedOperation op, Credential cred)
   {@inheritDoc}
 
public Advertisement
   {@inheritDoc}
 
public Service
   {@inheritDoc}
 
PeerGroup
   {@inheritDoc}
 
public void
init(PeerGroup group, ID assignedID, Advertisement implAdv)
   {@inheritDoc}
 
public PrivilegedOperation
newPrivilegedOperation(Element source)
   {@inheritDoc}
 
public PrivilegedOperation
newPrivilegedOperation(Object subject, Credential offerer)
   {@inheritDoc}
 
public int
startApp(String args)
   {@inheritDoc}
 
public void
   {@inheritDoc}
 
Field Detail
group
PeerGroup group

implAdvertisement
ModuleImplAdvertisement implAdvertisement

LOG
private final static Logger LOG = Logger.getLogger( AlwaysAccessService.class.getName() )
log4J Logger
Constructor Detail
AlwaysAccessService
public AlwaysAccessService()
Default Constructor
Method Detail
doAccessCheck
public AccessResult doAccessCheck(PrivilegedOperation op, Credential cred)
{@inheritDoc}

getImplAdvertisement
public Advertisement getImplAdvertisement()
{@inheritDoc}

getInterface
public Service getInterface()
{@inheritDoc}

getPeerGroup
PeerGroup getPeerGroup()
{@inheritDoc}

init
public void init(PeerGroup group, ID assignedID, Advertisement implAdv)
{@inheritDoc}
Throws:
PeerGroupException

newPrivilegedOperation
public PrivilegedOperation newPrivilegedOperation(Object subject, Credential offerer)
{@inheritDoc}

newPrivilegedOperation
public PrivilegedOperation newPrivilegedOperation(Element source)
{@inheritDoc}

startApp
public int startApp(String args)
{@inheritDoc}

stopApp
public void stopApp()
{@inheritDoc}