org.walluck.oscar.channel.rendezvous
Class TrillianSecureIMRendezvous

java.lang.Object
  extended byorg.walluck.oscar.channel.Channel
      extended byorg.walluck.oscar.channel.rendezvous.Rendezvous
          extended byorg.walluck.oscar.channel.rendezvous.TrillianSecureIMRendezvous

public class TrillianSecureIMRendezvous
extends Rendezvous

Trillian SecureIM Rendezvous.

Since:
1.0
Version:
1.0
Author:
David Walluck

Field Summary
static int CMDTYPE_ACCEPT
          The accept command type.
static int CMDTYPE_BEGIN
          The begin command type.
static int CMDTYPE_CLOSE
          The close command type.
static int CMDTYPE_MESSAGE
          The message command type.
static int CMDTYPE_REQUEST
          The request command type.
static int TLV_TYPE_CMDTYPE
          TLV type containing the command type.
static int TLV_TYPE_MESSAGE
          The TLV type containing the message .
static int TLV_TYPE_PRIME
          The TLV type containing the prime value.
static int TLV_TYPE_PUBLICVALUE_ACCEPT
          The TLV type containing the public value in an accept.
static int TLV_TYPE_PUBLICVALUE_REQUEST
          The TLV type containing the public value in a request.
static int TLV_TYPE_VERSION
          TLV type containing the version.
static int VERSION
          The default version.
 
Fields inherited from class org.walluck.oscar.channel.rendezvous.Rendezvous
ERROR_CODE_DECLINED, ERROR_CODE_NOT_ACCEPTING, ERROR_CODE_NOT_SUPPORTED, TLV_TYPE_CHAT_MESSAGE, TLV_TYPE_ENCODING, TLV_TYPE_ERROR_CODE, TLV_TYPE_GAMES_URL, TLV_TYPE_INVITATION_MESSAGE, TLV_TYPE_IP_ADDRRESS, TLV_TYPE_LANGUAGE, TLV_TYPE_MY_IP_ADDRESS, TLV_TYPE_OTHER_URL, TLV_TYPE_PORT, TLV_TYPE_PROXY, TLV_TYPE_REQUEST_TYPE, TLV_TYPE_SECURE, TLV_TYPE_UNKNOWN0001, TLV_TYPE_UNKNOWN0009, TLV_TYPE_UNKNOWN000F, TLV_TYPE_VERIFIED_IP_ADDR, TYPE_ACCEPT, TYPE_CANCEL, TYPE_REQUEST
 
Constructor Summary
TrillianSecureIMRendezvous()
          Creates a new Trillian SecureIM Rendezvous.
 
Method Summary
 int getCmdType()
          Get the value of cmdType.
 byte[] getMsg()
          Get the value of msg.
 java.math.BigInteger getPrime()
          Get the value of prime.
 java.math.BigInteger getPublicValue()
          Get the value of publicValue.
 int getVersion()
          Get the value of version.
 void handleServiceData(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, UserInfo userinfo, IncomingIMCH2 args, AIMInputStream buffer)
          Incoming IM Channel 2 (Trillian SecureIM).
 void setAccept()
          Send a rendezvous accept.
 void setBegin()
          Send a rendezvous begin.
 void setClose()
          Send a rendezvous close.
 void setCmdType(int cmdType)
          Set the value of cmdType.
 void setMsg()
          Send a rendezvous msg.
 void setMsg(byte[] msg)
          Set the value of msg.
 void setPrime(java.math.BigInteger prime)
          Set the value of prime.
 void setPublicValue(java.math.BigInteger publicValue)
          Set the value of publicValue.
 void setRequest()
          Send a rendezvous request.
 void setVersion(int version)
          Set the value of version.
 
Methods inherited from class org.walluck.oscar.channel.rendezvous.Rendezvous
getCookie, getErrorCode, getService, getServiceData, getType, setCancel, setCookie, setError, setErrorCode, setService, setServiceData, setType
 
Methods inherited from class org.walluck.oscar.channel.Channel
getChannel, setChannel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final int VERSION
The default version.

See Also:
Constant Field Values

TLV_TYPE_VERSION

public static final int TLV_TYPE_VERSION
TLV type containing the version.

See Also:
Constant Field Values

TLV_TYPE_CMDTYPE

public static final int TLV_TYPE_CMDTYPE
TLV type containing the command type.

See Also:
Constant Field Values

TLV_TYPE_PRIME

public static final int TLV_TYPE_PRIME
The TLV type containing the prime value.

See Also:
Constant Field Values

TLV_TYPE_PUBLICVALUE_REQUEST

public static final int TLV_TYPE_PUBLICVALUE_REQUEST
The TLV type containing the public value in a request.

See Also:
Constant Field Values

TLV_TYPE_PUBLICVALUE_ACCEPT

public static final int TLV_TYPE_PUBLICVALUE_ACCEPT
The TLV type containing the public value in an accept.

See Also:
Constant Field Values

TLV_TYPE_MESSAGE

public static final int TLV_TYPE_MESSAGE
The TLV type containing the message .

See Also:
Constant Field Values

CMDTYPE_REQUEST

public static final int CMDTYPE_REQUEST
The request command type.

See Also:
Constant Field Values

CMDTYPE_ACCEPT

public static final int CMDTYPE_ACCEPT
The accept command type.

See Also:
Constant Field Values

CMDTYPE_BEGIN

public static final int CMDTYPE_BEGIN
The begin command type.

See Also:
Constant Field Values

CMDTYPE_MESSAGE

public static final int CMDTYPE_MESSAGE
The message command type.

See Also:
Constant Field Values

CMDTYPE_CLOSE

public static final int CMDTYPE_CLOSE
The close command type.

See Also:
Constant Field Values
Constructor Detail

TrillianSecureIMRendezvous

public TrillianSecureIMRendezvous()
Creates a new Trillian SecureIM Rendezvous.

Method Detail

getVersion

public int getVersion()
Get the value of version.

Returns:
value of version.

setVersion

public void setVersion(int version)
Set the value of version.

Parameters:
version - Value to assign to version.

getCmdType

public int getCmdType()
Get the value of cmdType.

Returns:
value of cmdType.

setCmdType

public void setCmdType(int cmdType)
Set the value of cmdType.

Parameters:
cmdType - Value to assign to cmdType.

getPrime

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

Returns:
value of prime.

setPrime

public void setPrime(java.math.BigInteger prime)
Set the value of prime.

Parameters:
prime - Value to assign to prime.

getPublicValue

public java.math.BigInteger getPublicValue()
Get the value of publicValue.

Returns:
value of publicValue.

setPublicValue

public void setPublicValue(java.math.BigInteger publicValue)
Set the value of publicValue.

Parameters:
publicValue - Value to assign to publicValue.

getMsg

public byte[] getMsg()
Get the value of msg.

Returns:
value of msg.

setMsg

public void setMsg(byte[] msg)
Set the value of msg.

Parameters:
msg - Value to assign to msg.

setRequest

public void setRequest()
                throws java.io.IOException
Send a rendezvous request.

Specified by:
setRequest in class Rendezvous
Throws:
java.io.IOException - if an error occurs

setAccept

public void setAccept()
               throws java.io.IOException
Send a rendezvous accept.

Overrides:
setAccept in class Rendezvous
Throws:
java.io.IOException - if an error occurs

setBegin

public void setBegin()
              throws java.io.IOException
Send a rendezvous begin.

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

setClose

public void setClose()
              throws java.io.IOException
Send a rendezvous close.

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

setMsg

public void setMsg()
            throws java.io.IOException
Send a rendezvous msg.

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

handleServiceData

public void handleServiceData(AIMSession sess,
                              SNACHandler handler,
                              AIMFrame frame,
                              SNAC snac,
                              UserInfo userinfo,
                              IncomingIMCH2 args,
                              AIMInputStream buffer)
                       throws java.io.IOException
Incoming IM Channel 2 (Trillian SecureIM).

Specified by:
handleServiceData in class Rendezvous
Parameters:
sess - the oscar session
handler - the handler
frame - the incoming frame
snac - the incoming SNAC
userinfo - user information
args - incoming im ch2 args
buffer - the incoming buffer
Throws:
java.io.IOException - if an error occurs