net.kano.joscar.snaccmd.conn
Class EncryptionInfoAck
java.lang.Object
SnacCommand
ConnCommand
EncryptionInfoAck
- public class EncryptionInfoAck
- extends ConnCommand
A SNAC command sent in response to a SetEncryptionInfoCmd to
acknowledge that the client has set its encryption information. As of this
writing, the significance of this command and its contents is unknown; one
may wish to note, however, that normally each extra info block holder sent in this command contains
two copies (as the first
and second blocks)
of the ExtraInfoBlocks sent in the
SetEncryptionInfoCmd.
- See Also:
SetEncryptionInfoCmd- Source of this SNAC:
- AIM server
- SNAC command type:
- Family
0x01, command 0x23
| 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 |
|
Constructor Summary |
|
EncryptionInfoAck(ExtraInfoBlockHolder[] blocks)
Creates a new outgoing encryption information acknowledgement packet with
the given list of extra info block holder objects. |
protected |
EncryptionInfoAck(SnacPacket packet)
Creates a new encryption information acknowledgement command from the
given incoming encryption info ack SNAC packet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EncryptionInfoAck
protected EncryptionInfoAck(SnacPacket packet)
- Creates a new encryption information acknowledgement command from the
given incoming encryption info ack SNAC packet.
- Parameters:
packet - an incoming encryption info acknowledgement SNAC packet
EncryptionInfoAck
public EncryptionInfoAck(ExtraInfoBlockHolder[] blocks)
- Creates a new outgoing encryption information acknowledgement packet with
the given list of extra info block holder objects. Note that neither
blocks nor any of the elements in blocks can be
null.
- Parameters:
blocks - a list of extra info block holder objects
getExtraInfoBlocks
public final ExtraInfoBlockHolder[] getExtraInfoBlocks()
- Returns the extra info block holders sent in this command. Note that this
method will never return
null; if no extra info block
holders were sent in this command, an empty array will be returned;
- Returns:
- the extra info block holders sent in this command
writeData
public void writeData(java.io.OutputStream out)
throws java.io.IOException
- Description copied from class:
SnacCommand
- Writes this command's SNAC data block to the given stream. The SNAC data
block is the data after the first ten bytes of a SNAC packet.
- Specified by:
writeData in class SnacCommand
- Parameters:
out - the stream to which to write the SNAC data
- Throws:
java.io.IOException - if an I/O error occurs
toString
public java.lang.String toString()