|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.platform.service.SecurityModule
public class SecurityModule
This class implements a security model for the platform services. It associates each service with a unique policy that is specified via the AFPolicy class.
| Constructor Summary | |
|---|---|
SecurityModule(java.util.Vector policies)
Creates a new instance of SecurityModule |
|
| Method Summary | |
|---|---|
void |
addGlobalPolicy(java.lang.String service,
int right)
|
void |
addPolicy(Agent agent,
java.lang.String service,
int right)
Adds an agent right to a service policy. |
void |
addPolicy(java.lang.String name,
java.lang.String service,
int right)
Adds an agent right to a service policy. |
boolean |
hasAccess(java.lang.String agent,
java.lang.String service)
This method checks whether or not an agent has access to a service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityModule(java.util.Vector policies)
| Method Detail |
|---|
public boolean hasAccess(java.lang.String agent,
java.lang.String service)
agent - the name of the agent that is requesting the serviceservice - the service being requested
public void addPolicy(Agent agent,
java.lang.String service,
int right)
agent - the agent that will be given the rightservice - the service they associated with the right.right - the right they are given
public void addPolicy(java.lang.String name,
java.lang.String service,
int right)
name - the agent that will be given the rightservice - the service they associated with the right.right - the right they are given
public void addGlobalPolicy(java.lang.String service,
int right)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||