net.kano.joscar.snaccmd.conn
Class SetEncryptionInfoCmd

java.lang.Object
  extended bySnacCommand
      extended byConnCommand
          extended byAbstractExtraInfoCmd
              extended bySetEncryptionInfoCmd

public class SetEncryptionInfoCmd
extends AbstractExtraInfoCmd

A SNAC command used for setting some sort of security information. As of this writing, the significance of this command is unknown. This command is normally responded-to with a EncryptionInfoAck which contains the same extra info blocks sent in this command.

When sent by the official AIM clients, this command normally contains two extra info blocks, the first of type ExtraInfoBlock.TYPE_CERTINFO_HASHA and the second of type ExtraInfoBlock.TYPE_CERTINFO_HASHB. They normally contain CertificateInfo.HASHA_DEFAULT and CertificateInfo.HASHB_DEFAULT, respectively.

See Also:
EncryptionInfoAck, ExtraInfoBlock, CertificateInfo
Source of this SNAC:
AIM client
SNAC command type:
Family 0x01, command 0x22

Field Summary
 
Fields inherited from class ConnCommand
CMD_CLIENT_READY, CMD_CLIENT_VERS, CMD_ENCINFOACK, CMD_EXTRA_ACK, CMD_MIGRATE_PLS, CMD_MY_INFO_REQ, CMD_NOOP, CMD_PAUSE, CMD_PAUSE_ACK, CMD_RATE_ACK, CMD_RATE_CHG, CMD_RATE_INFO, CMD_RATE_REQ, CMD_RESUME, CMD_SERV_VERS, CMD_SERVER_READY, CMD_SERVICE_REDIR, CMD_SERVICE_REQ, CMD_SET_IDLE, CMD_SETENCINFO, CMD_SETEXTRAINFO, CMD_UPDATE, CMD_WARNED, CMD_YOUR_INFO, FAMILY_CONN, FAMILY_INFO
 
Fields inherited from class SnacCommand
SNACFLAG_DEFAULT
 
Constructor Summary
  SetEncryptionInfoCmd(ExtraInfoBlock[] blocks)
          Creates a new outgoing set-encryption-info command with the given list of extra info blocks.
protected SetEncryptionInfoCmd(SnacPacket packet)
          Creates a new set-encryption-info command from the given incoming set-encryption-info SNAC packet.
 
Methods inherited from class AbstractExtraInfoCmd
getExtraInfos, toString, writeData
 
Methods inherited from class SnacCommand
getCommand, getFamily, getFlag1, getFlag2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetEncryptionInfoCmd

protected SetEncryptionInfoCmd(SnacPacket packet)
Creates a new set-encryption-info command from the given incoming set-encryption-info SNAC packet.

Parameters:
packet - an incoming set-encryption-info SNAC packet

SetEncryptionInfoCmd

public SetEncryptionInfoCmd(ExtraInfoBlock[] blocks)
Creates a new outgoing set-encryption-info command with the given list of extra info blocks. Note that neither blocks nor any of its elements can be null.

Parameters:
blocks - the list of extra info blocks to send in this command