ajanta.server
Class ATPTransfer

java.lang.Object
  |
  +--ajanta.server.ATPTransfer
All Implemented Interfaces:
java.io.Serializable

public class ATPTransfer
extends java.lang.Object
implements java.io.Serializable

Class ATPTransfer is the message format for the actual agent transfer. It includes the encrypted agent object as well as a signature of the sender on a previously obtained nonce, to prove its identity.

See Also:
Serialized Form

Constructor Summary
ATPTransfer(ajanta.naming.URN s, byte[] sig, java.lang.Object a, boolean e)
           
 
Method Summary
 ajanta.agent.Agent getAgent()
          return agent
 ajanta.crypto.EGCipherText getCryptAgent()
          return elgaml cipher text of encrypted agent
 boolean getEncryptedFlag()
           
 ajanta.naming.URN getServerName()
          return URN of the server agent
 byte[] getSignature()
          return byte array of the signature of agent's credential
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ATPTransfer

public ATPTransfer(ajanta.naming.URN s,
                   byte[] sig,
                   java.lang.Object a,
                   boolean e)
Parameters:
s - URN of the server sending the agent
sig - server's signature on the previously sent nonce
a - the agent itself, possibly encrypted
e - true if encrypted flase otherwise
Method Detail

getServerName

public ajanta.naming.URN getServerName()
return URN of the server agent


getSignature

public byte[] getSignature()
return byte array of the signature of agent's credential


getCryptAgent

public ajanta.crypto.EGCipherText getCryptAgent()
return elgaml cipher text of encrypted agent


getAgent

public ajanta.agent.Agent getAgent()
return agent


getEncryptedFlag

public boolean getEncryptedFlag()
Returns:
true if agent is encrypted false otherwise