net.kano.joscar.rvcmd.trillcrypt
Class TrillianCryptAcceptRvCmd
java.lang.Object
RvCommand
AbstractTrillianCryptRvCmd
TrillianCryptAcceptRvCmd
- public class TrillianCryptAcceptRvCmd
- extends AbstractTrillianCryptRvCmd
A rendezvous command used to accept a Trillian Encryption session. This
command appears to send back a Diffie-Hellman public value (y
),
but as of this writing it is still unclear how the values fit together.
Constructor Summary |
TrillianCryptAcceptRvCmd(java.math.BigInteger publicValue)
Creates a new outgoing Trillian Encryption session acceptance command
with the given Diffie-Hellman public value. |
TrillianCryptAcceptRvCmd(RecvRvIcbm icbm)
Creates a new Trillian Encryption session acceptance command from the
given incoming session acceptance RV ICBM. |
Method Summary |
java.math.BigInteger |
getPublicValue()
Returns the Diffie-Hellman public value sent in this command. |
java.lang.String |
toString()
|
protected void |
writeExtraTlvs(java.io.OutputStream out)
Writes any "extra" TLV's to be sent in this command to the given stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TrillianCryptAcceptRvCmd
public TrillianCryptAcceptRvCmd(RecvRvIcbm icbm)
- Creates a new Trillian Encryption session acceptance command from the
given incoming session acceptance RV ICBM.
- Parameters:
icbm
- an incoming Trillian Encryption session acceptance RV ICBM
command
TrillianCryptAcceptRvCmd
public TrillianCryptAcceptRvCmd(java.math.BigInteger publicValue)
- Creates a new outgoing Trillian Encryption session acceptance command
with the given Diffie-Hellman public value.
- Parameters:
publicValue
- a Diffie-Hellman public value
getPublicValue
public final java.math.BigInteger getPublicValue()
- Returns the Diffie-Hellman public value sent in this command.
- Returns:
- this command's Diffie-Hellman public value, or
null
if none was sent
writeExtraTlvs
protected void writeExtraTlvs(java.io.OutputStream out)
throws java.io.IOException
- Description copied from class:
AbstractTrillianCryptRvCmd
- Writes any "extra" TLV's to be sent in this command to the given stream.
- Specified by:
writeExtraTlvs
in class AbstractTrillianCryptRvCmd
- Parameters:
out
- the stream to which to write
- Throws:
java.io.IOException
toString
public java.lang.String toString()