org.walluck.oscar.handlers.trilliansecureim
Class TrillianSecureIM2

java.lang.Object
  extended byorg.walluck.oscar.handlers.trilliansecureim.TrillianSecureIM2

public class TrillianSecureIM2
extends java.lang.Object

Handles Trillian SecureIM connections.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
TrillianSecureIM2(AIMSession sess, java.lang.String screenname)
          Creates a new Trillian SecureIM.
 
Method Summary
 void end()
          End this Trillian SecureIM session.
 byte[] getMyPrivate()
          Get the value of myPrivate.
 byte[] getMyPublic()
          Get the value of myPublic.
 byte[] getPeerPublic()
          Get the value of peerPublic.
 java.math.BigInteger getPrime()
          Get the value of prime.
 byte[] getSessionKey()
          Get the value of sessionKey.
 void handleSecureIM(IncomingIMCH2 args)
          Handles a SecureIM packet.
 void sendMsg(java.lang.String msg)
          Send a Trillian SecureIM message.
 void sendRequest()
          Send a Trillian SecureIM request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrillianSecureIM2

public TrillianSecureIM2(AIMSession sess,
                         java.lang.String screenname)
Creates a new Trillian SecureIM.

Parameters:
sess - the oscar session
screenname - the screenname
Method Detail

end

public void end()
End this Trillian SecureIM session.


sendRequest

public void sendRequest()
                 throws java.io.IOException
Send a Trillian SecureIM request.

Throws:
java.io.IOException - if an error occurs

sendMsg

public void sendMsg(java.lang.String msg)
Send a Trillian SecureIM message.

Parameters:
msg - the message

handleSecureIM

public void handleSecureIM(IncomingIMCH2 args)
Handles a SecureIM packet.

Parameters:
args - the incoming IM CH2 args

getPrime

public java.math.BigInteger getPrime()
Get the value of prime.

Returns:
the value of prime.

getMyPrivate

public byte[] getMyPrivate()
Get the value of myPrivate.

Returns:
the value of myPrivate.

getMyPublic

public byte[] getMyPublic()
Get the value of myPublic.

Returns:
the value of myPublic.

getPeerPublic

public byte[] getPeerPublic()
Get the value of peerPublic.

Returns:
the value of peerPublic.

getSessionKey

public byte[] getSessionKey()
Get the value of sessionKey.

Returns:
the value of sessionKey.