|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ajanta.server.DD
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 Summary | |
DD(ajanta.naming.URN name,
ajanta.agent.Agent ag,
java.lang.ThreadGroup tg,
ajanta.server.AgentLoader cl,
ajanta.server.AgentEnv h,
java.io.ObjectInputStream in,
java.io.ObjectOutputStream out,
ajanta.util.MethodSpec action,
ajanta.agent.Credentials cred,
int nonce,
ajanta.naming.URN credSignedBY)
|
Method Summary | |
ajanta.util.MethodSpec |
getAction()
return MeyhodSpec of the method to be executed on this server |
ajanta.agent.Agent |
getAgent()
return reference of the agent |
ajanta.server.AgentEnv |
getAgentEnv()
return agent server enevironment context available to this agent |
ajanta.agent.Credentials |
getCredentials()
return credential object of the agent |
java.security.Signature |
getCredSignature()
return credntial signature object of the DD |
java.io.ObjectInputStream |
getIS()
return ObjectInputStream on which agent is transfered |
ajanta.server.AgentLoader |
getLoader()
return agent loader for the agent |
ajanta.naming.URN |
getName()
return URN of the agent |
int |
getNonce()
return current challenge ( nonce ) for the agent |
java.io.ObjectOutputStream |
getOS()
return ObjectOutputStream on which server can send reply or ack to sender |
ajanta.naming.URN |
getSignedBY()
return URN of the signer of the signature |
java.lang.ThreadGroup |
getTG()
return thread group id of the agent |
boolean |
getVerified()
|
void |
setAgent(ajanta.agent.Agent x)
Set agent field of the DD to the agent reference passed as argument |
void |
setCredentials(ajanta.agent.Credentials c)
Set credntial object of the DD to the credential object passed as argument |
void |
setCredSignature(java.security.Signature s)
Set credntial signature object of the DD to the signature object passed as argument |
void |
setTransferMode()
These public methods are called by the launch() method in the AgentEnv to set or unset the boolean when it is in the process of launching an agent so that the security manager will know when to allow the connection |
void |
setVerified(boolean stat)
set verified filed to stat value passed as argument. |
void |
unsetTransferMode()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DD(ajanta.naming.URN name, ajanta.agent.Agent ag, java.lang.ThreadGroup tg, ajanta.server.AgentLoader cl, ajanta.server.AgentEnv h, java.io.ObjectInputStream in, java.io.ObjectOutputStream out, ajanta.util.MethodSpec action, ajanta.agent.Credentials cred, int nonce, ajanta.naming.URN credSignedBY)
name
- the agent's URNag
- the agent objecttg
- the thread group created for this agentcl
- the class loader assigned to this agenth
- agent server environment context objectin
- the stream on which the agent is transferredout
- the corresponding output stream to send acknowledgementaction
- the agent's action to be executed at this sitecred
- agent's credentialsnonce
- challenge sent in the ATPReply to sending servercredSignedBY
- URN of the signer of the credential bytesMethod Detail |
public ajanta.agent.Agent getAgent()
public ajanta.naming.URN getName()
public java.lang.ThreadGroup getTG()
public java.io.ObjectInputStream getIS()
public java.io.ObjectOutputStream getOS()
public ajanta.server.AgentLoader getLoader()
public ajanta.agent.Credentials getCredentials()
public ajanta.util.MethodSpec getAction()
public ajanta.server.AgentEnv getAgentEnv()
public int getNonce()
public void setAgent(ajanta.agent.Agent x)
public void setCredentials(ajanta.agent.Credentials c)
public void setCredSignature(java.security.Signature s)
public java.security.Signature getCredSignature()
public void setVerified(boolean stat)
public boolean getVerified()
public ajanta.naming.URN getSignedBY()
public void setTransferMode()
public void unsetTransferMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |