net.kano.joscar.rvcmd.trillcrypt
Class TrillianCryptReqRvCmd
java.lang.Object
RvCommand
AbstractTrillianCryptRvCmd
TrillianCryptReqRvCmd
- public class TrillianCryptReqRvCmd
- extends AbstractTrillianCryptRvCmd
A rendezvous command used to initiate a Trillian Secure IM session. This
command appears to contain a Diffie-Hellman modulus and public value, but as
of this writing, it is unclear what exactly these values mean and how exactly
to use/create/send messages over a Secure IM connection. It appears, however,
that Trillian always uses a generator (g
) value of
5
. (For fun, try sending a Trillian client a modulus of
5
in this command.)
- See Also:
net.kano.joscar.rvcmd.trillcrypt
Constructor Summary |
TrillianCryptReqRvCmd(java.math.BigInteger modulus,
java.math.BigInteger publicValue)
Creates a new outgoing Trillian Encryption session request with the given
Diffie-Hellman modulus and public value. |
TrillianCryptReqRvCmd(RecvRvIcbm icbm)
Creatse a new Trillian Encryption session request from the given incoming
Trillian Encryption session request RV ICBM. |
Method Summary |
java.math.BigInteger |
getModulus()
Returns the Diffie-Hellman modulus sent in this command. |
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 |
TrillianCryptReqRvCmd
public TrillianCryptReqRvCmd(RecvRvIcbm icbm)
- Creatse a new Trillian Encryption session request from the given incoming
Trillian Encryption session request RV ICBM.
- Parameters:
icbm
- an incoming Trillian Encryption session request RV ICBM
command
TrillianCryptReqRvCmd
public TrillianCryptReqRvCmd(java.math.BigInteger modulus,
java.math.BigInteger publicValue)
- Creates a new outgoing Trillian Encryption session request with the given
Diffie-Hellman modulus and public value.
- Parameters:
modulus
- the Diffie-Hellman moduluspublicValue
- the Diffie-Hellman public value
getModulus
public final java.math.BigInteger getModulus()
- Returns the Diffie-Hellman modulus sent in this command.
- Returns:
- this command's Diffie-Hellman modulus, or
null
if
none was sent
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()