All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ajanta.server.DDEntry

java.lang.Object
   |
   +----ajanta.server.DDEntry

public class DDEntry
extends Object
The server maintains a domain registry indexed by thread group ids, in which it stores the agent's URN and credentials, as well as a reference to the agent object itself. This entry is used by the server's security-conscious code whenever it needs access to the agent or its identity --- for example, when an agent attempts to acquire a resource, its credentials may be needed to determine the level of access permitted. The resource's code finds the current thread's thread group id and looks up the domain registry using that id as the index. The registry entry can then be used to determine the agent's access privileges.


Constructor Index

 o DDEntry(URN, Agent, ThreadGroup, AgentLoader, AgentEnv, ObjectInputStream, ObjectOutputStream, MethodSpec, Credentials, int, URN)

Method Index

 o getAction()
return MeyhodSpec of the method to be executed on this server
 o getAgent()
return reference of the agent
 o getAgentEnv()
return agent server enevironment context available to this agent
 o getCredentials()
return credential object of the agent
 o getCredSignature()
return credntial signature object of the DDEntry
 o getIS()
return ObjectInputStream on which agent is transfered
 o getLoader()
return agent loader for the agent
 o getName()
return URN of the agent
 o getNonce()
return current challenge ( nonce ) for the agent
 o getOS()
return ObjectOutputStream on which server can send reply or ack to sender
 o getSignedBY()
return URN of the signer of the signature
 o getTG()
return thread group id of the agent
 o getVerified()
 o setAgent(Agent)
Set agent field of the DDEntry to the agent reference passed as argument
 o setCredentials(Credentials)
Set credntial object of the DDEntry to the credential object passed as argument
 o setCredSignature(Signature)
Set credntial signature object of the DDEntry to the signature object passed as argument
 o setVerified(boolean)
set verified filed to stat value passed as argument.

Constructors

 o DDEntry
 public DDEntry(URN name,
                Agent ag,
                ThreadGroup tg,
                AgentLoader cl,
                AgentEnv h,
                ObjectInputStream in,
                ObjectOutputStream out,
                MethodSpec action,
                Credentials cred,
                int nonce,
                URN credSignedBY)
Parameters:
name - the agent's URN
ag - the agent object
tg - the thread group created for this agent
cl - the class loader assigned to this agent
h - agent server environment context object
in - the stream on which the agent is transferred
out - the corresponding output stream to send acknowledgement
action - the agent's action to be executed at this site
cred - agent's credentials
nonce - challenge sent in the ATPReply to sending server
credSignedBY - URN of the signer of the credential bytes

Methods

 o getAgent
 public Agent getAgent()
return reference of the agent

 o getName
 public URN getName()
return URN of the agent

 o getTG
 public ThreadGroup getTG()
return thread group id of the agent

 o getIS
 public ObjectInputStream getIS()
return ObjectInputStream on which agent is transfered

 o getOS
 public ObjectOutputStream getOS()
return ObjectOutputStream on which server can send reply or ack to sender

 o getLoader
 public AgentLoader getLoader()
return agent loader for the agent

 o getCredentials
 public Credentials getCredentials()
return credential object of the agent

 o getAction
 public MethodSpec getAction()
return MeyhodSpec of the method to be executed on this server

 o getAgentEnv
 public AgentEnv getAgentEnv()
return agent server enevironment context available to this agent

 o getNonce
 public int getNonce()
return current challenge ( nonce ) for the agent

 o setAgent
 public void setAgent(Agent x)
Set agent field of the DDEntry to the agent reference passed as argument

 o setCredentials
 public void setCredentials(Credentials c)
Set credntial object of the DDEntry to the credential object passed as argument

 o setCredSignature
 public void setCredSignature(Signature s)
Set credntial signature object of the DDEntry to the signature object passed as argument

 o getCredSignature
 public Signature getCredSignature()
return credntial signature object of the DDEntry

 o setVerified
 public void setVerified(boolean stat)
set verified filed to stat value passed as argument. True indicate signature is verfied

 o getVerified
 public boolean getVerified()
Returns:
true if signature is verified false otherwise
 o getSignedBY
 public URN getSignedBY()
return URN of the signer of the signature


All Packages  Class Hierarchy  This Package  Previous  Next  Index