<li><ahref="../../../../../../com/captainalm/lib/calmnet/packet/core/EncryptedPacket.html"title="class in com.captainalm.lib.calmnet.packet.core"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionUpgradePacket.html"title="class in com.captainalm.lib.calmnet.packet.core"><spanclass="typeNameLink">Next Class</span></a></li>
<dd><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IAcknowledgement.html"title="interface in com.captainalm.lib.calmnet.packet">IAcknowledgement</a>, <ahref="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html"title="interface in com.captainalm.lib.calmnet.packet">IInternalCache</a>, <ahref="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>, <ahref="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="typeNameLabel">NetworkEncryptionCipherPacket</span>
extends java.lang.Object
implements <ahref="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a>, <ahref="../../../../../../com/captainalm/lib/calmnet/packet/IAcknowledgement.html"title="interface in com.captainalm.lib.calmnet.packet">IAcknowledgement</a>, <ahref="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html"title="interface in com.captainalm.lib.calmnet.packet">IInternalCache</a></pre>
<divclass="block">This class provides the ability for supporting streams to negotiate a cipher.
<divclass="block">Gets the cipher names this packet contains.</div>
</td>
</tr>
<trid="i1"class="rowColor">
<tdclass="colFirst"><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a></code></td>
<divclass="block">Gets the size of the output data.</div>
</td>
</tr>
<trid="i3"class="rowColor">
<tdclass="colFirst"><code>static <ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a></code></td>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IAcknowledgement.html#isAcknowledgement--">isAcknowledgement</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IAcknowledgement.html"title="interface in com.captainalm.lib.calmnet.packet">IAcknowledgement</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>If the class instance is an Acknowledgement.</dd>
</dl>
</li>
</ul>
<aname="isValid--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>isValid</h4>
<pre>public boolean isValid()</pre>
<divclass="block">Gets if the packet is valid.</div>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html#isValid--">isValid</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>Is the packet valid?</dd>
</dl>
</li>
</ul>
<aname="getProtocol--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getProtocol</h4>
<pre>public <ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> getProtocol()</pre>
<divclass="block">Gets the protocol information.</div>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html#getProtocol--">getProtocol</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The protocol information.</dd>
</dl>
</li>
</ul>
<aname="getTheProtocol--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getTheProtocol</h4>
<pre>public static <ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> getTheProtocol()</pre>
<divclass="block">Gets the protocol information statically.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The protocol information.</dd>
</dl>
</li>
</ul>
<aname="savePayload--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>savePayload</h4>
<pre>public byte[] savePayload()
throws <ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Saves the packet payload to a byte array.</div>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html#savePayload--">savePayload</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The packet payload data.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
throws <ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Loads the packet payload from save data.</div>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html#loadPayload-byte:A-">loadPayload</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></dd>
<dd><code>packetData</code> - The packet payload data.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - The new store data is null.</dd>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Reads payload data to an <code>OutputStream</code>.</div>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html#readData-java.io.OutputStream-">readData</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a></code></dd>
<dd><code>outputStream</code> - The output stream to read data to.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - outputStream is null.</dd>
<dd><code>java.io.IOException</code> - An IO Exception has occurred.</dd>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Writes payload data from an <code>InputStream</code>.</div>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html#writeData-java.io.InputStream-int-">writeData</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a></code></dd>
<dd><code>inputStream</code> - The input stream to write data from.</dd>
<dd><code>size</code> - The size of the input payload in bytes.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - inputStream is null.</dd>
<dd><code>java.lang.IllegalArgumentException</code> - size is less than 0.</dd>
<dd><code>java.io.IOException</code> - An IO Exception has occurred.</dd>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
</dl>
</li>
</ul>
<aname="getSize--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getSize</h4>
<pre>public int getSize()
throws <ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Gets the size of the output data.</div>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html#getSize--">getSize</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The size of the output data in bytes.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html#isCacheUsed--">isCacheUsed</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html"title="interface in com.captainalm.lib.calmnet.packet">IInternalCache</a></code></dd>
<dd><code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html#setCacheUsed-boolean-">setCacheUsed</a></code> in interface <code><ahref="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html"title="interface in com.captainalm.lib.calmnet.packet">IInternalCache</a></code></dd>
<li><ahref="../../../../../../com/captainalm/lib/calmnet/packet/core/EncryptedPacket.html"title="class in com.captainalm.lib.calmnet.packet.core"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionUpgradePacket.html"title="class in com.captainalm.lib.calmnet.packet.core"><spanclass="typeNameLink">Next Class</span></a></li>