ants.p2p.messages
Class SecurityResponseMessage

java.lang.Object
  extended by ants.p2p.Message
      extended by ants.p2p.messages.SecurityResponseMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SecurityResponseMessage
extends Message

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ants.p2p.Message
dest
 
Constructor Summary
SecurityResponseMessage(Message m, java.security.PublicKey peerPubKey, Message requestMessage)
           
SecurityResponseMessage(java.security.PublicKey peerPubKey, Message requestMessage)
           
 
Method Summary
 java.security.PublicKey getPeerPubkey()
           
 Message getRequestMessage()
           
 
Methods inherited from class ants.p2p.Message
decrypt, disableAutoRetransmit, encrypt, equals, fillMessageProperties, getAck_Id, getDelivered, getDest, getPublicKey, getRetrasmissions, getSignableMessage, getSignature, getSource, getSourceAddress, getType, getVersion, invalidate, resetDelivered, resetDest, resetSource, retrasmitted, setDelivered, setPublicKey, setSignature
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityResponseMessage

public SecurityResponseMessage(Message m,
                               java.security.PublicKey peerPubKey,
                               Message requestMessage)
                        throws java.lang.Exception
Throws:
java.lang.Exception

SecurityResponseMessage

public SecurityResponseMessage(java.security.PublicKey peerPubKey,
                               Message requestMessage)
                        throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getRequestMessage

public Message getRequestMessage()

getPeerPubkey

public java.security.PublicKey getPeerPubkey()
                                      throws java.lang.Exception
Throws:
java.lang.Exception