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.
-
DDEntry(URN, Agent, ThreadGroup, AgentLoader, AgentEnv, ObjectInputStream, ObjectOutputStream, MethodSpec, Credentials, int, URN)
-
-
getAction()
- return MeyhodSpec of the method to be executed on this server
-
getAgent()
- return reference of the agent
-
getAgentEnv()
- return agent server enevironment context available to this agent
-
getCredentials()
- return credential object of the agent
-
getCredSignature()
- return credntial signature object of the DDEntry
-
getIS()
- return ObjectInputStream on which agent is transfered
-
getLoader()
- return agent loader for the agent
-
getName()
- return URN of the agent
-
getNonce()
- return current challenge ( nonce ) for the agent
-
getOS()
- return ObjectOutputStream on which server can send reply or ack to sender
-
getSignedBY()
- return URN of the signer of the signature
-
getTG()
- return thread group id of the agent
-
getVerified()
-
-
setAgent(Agent)
- Set agent field of the DDEntry to the agent reference passed as argument
-
setCredentials(Credentials)
- Set credntial object of the DDEntry to the credential object passed as argument
-
setCredSignature(Signature)
- Set credntial signature object of the DDEntry to the signature object passed as argument
-
setVerified(boolean)
- set verified filed to stat value passed as argument.
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
getAgent
public Agent getAgent()
- return reference of the agent
getName
public URN getName()
- return URN of the agent
getTG
public ThreadGroup getTG()
- return thread group id of the agent
getIS
public ObjectInputStream getIS()
- return ObjectInputStream on which agent is transfered
getOS
public ObjectOutputStream getOS()
- return ObjectOutputStream on which server can send reply or ack to sender
getLoader
public AgentLoader getLoader()
- return agent loader for the agent
getCredentials
public Credentials getCredentials()
- return credential object of the agent
getAction
public MethodSpec getAction()
- return MeyhodSpec of the method to be executed on this server
getAgentEnv
public AgentEnv getAgentEnv()
- return agent server enevironment context available to this agent
getNonce
public int getNonce()
- return current challenge ( nonce ) for the agent
setAgent
public void setAgent(Agent x)
- Set agent field of the DDEntry to the agent reference passed as argument
setCredentials
public void setCredentials(Credentials c)
- Set credntial object of the DDEntry to the credential object passed as argument
setCredSignature
public void setCredSignature(Signature s)
- Set credntial signature object of the DDEntry to the signature object passed as argument
getCredSignature
public Signature getCredSignature()
- return credntial signature object of the DDEntry
setVerified
public void setVerified(boolean stat)
- set verified filed to stat value passed as argument. True indicate signature is verfied
getVerified
public boolean getVerified()
- Returns:
- true if signature is verified false otherwise
getSignedBY
public URN getSignedBY()
- return URN of the signer of the signature
All Packages Class Hierarchy This Package Previous Next Index