calmnetlib/JavaDoc/com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html

591 lines
29 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 -->
<title>NetworkEncryptionCipherPacket</title>
<meta name="date" content="2023-05-23">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="NetworkEncryptionCipherPacket";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":9,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/EncryptedPacket.html" title="class in com.captainalm.lib.calmnet.packet.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionUpgradePacket.html" title="class in com.captainalm.lib.calmnet.packet.core"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html" target="_top">Frames</a></li>
<li><a href="NetworkEncryptionCipherPacket.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.captainalm.lib.calmnet.packet.core</div>
<h2 title="Class NetworkEncryptionCipherPacket" class="title">Class NetworkEncryptionCipherPacket</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.captainalm.lib.calmnet.packet.core.NetworkEncryptionCipherPacket</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../com/captainalm/lib/calmnet/packet/IAcknowledgement.html" title="interface in com.captainalm.lib.calmnet.packet">IAcknowledgement</a>, <a href="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html" title="interface in com.captainalm.lib.calmnet.packet">IInternalCache</a>, <a href="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>, <a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">NetworkEncryptionCipherPacket</span>
extends java.lang.Object
implements <a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a>, <a href="../../../../../../com/captainalm/lib/calmnet/packet/IAcknowledgement.html" title="interface in com.captainalm.lib.calmnet.packet">IAcknowledgement</a>, <a href="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html" title="interface in com.captainalm.lib.calmnet.packet">IInternalCache</a></pre>
<div class="block">This class provides the ability for supporting streams to negotiate a cipher.
<p>
Major ID: 255
Minor ID: 250
</p></div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Captain ALM</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#NetworkEncryptionCipherPacket-java.lang.Boolean-java.lang.String:A-">NetworkEncryptionCipherPacket</a></span>(java.lang.Boolean&nbsp;acknowledgement,
java.lang.String[]&nbsp;cipherNames)</code>
<div class="block">Constructs a new instance of NetworkEncryptionCipherPacket with the specified acknowledgement value and the specified ciphers.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#getCiphers--">getCiphers</a></span>()</code>
<div class="block">Gets the cipher names this packet contains.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html" title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#getProtocol--">getProtocol</a></span>()</code>
<div class="block">Gets the protocol information.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#getSize--">getSize</a></span>()</code>
<div class="block">Gets the size of the output data.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html" title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#getTheProtocol--">getTheProtocol</a></span>()</code>
<div class="block">Gets the protocol information statically.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#isAcknowledgement--">isAcknowledgement</a></span>()</code>
<div class="block">Gets if the class instance is an Acknowledgement.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#isCacheUsed--">isCacheUsed</a></span>()</code>
<div class="block">Gets if the cipher information is cached.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#isValid--">isValid</a></span>()</code>
<div class="block">Gets if the packet is valid.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#loadPayload-byte:A-">loadPayload</a></span>(byte[]&nbsp;packetData)</code>
<div class="block">Loads the packet payload from save data.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#readData-java.io.OutputStream-">readData</a></span>(java.io.OutputStream&nbsp;outputStream)</code>
<div class="block">Reads payload data to an <code>OutputStream</code>.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#savePayload--">savePayload</a></span>()</code>
<div class="block">Saves the packet payload to a byte array.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#setCacheUsed-boolean-">setCacheUsed</a></span>(boolean&nbsp;used)</code>
<div class="block">Sets if the cipher information is cached.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#setCiphers-java.lang.String:A-">setCiphers</a></span>(java.lang.String[]&nbsp;cipherNames)</code>
<div class="block">Sets the cipher names this packet contains.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html#writeData-java.io.InputStream-int-">writeData</a></span>(java.io.InputStream&nbsp;inputStream,
int&nbsp;size)</code>
<div class="block">Writes payload data from an <code>InputStream</code>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="NetworkEncryptionCipherPacket-java.lang.Boolean-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>NetworkEncryptionCipherPacket</h4>
<pre>public&nbsp;NetworkEncryptionCipherPacket(java.lang.Boolean&nbsp;acknowledgement,
java.lang.String[]&nbsp;cipherNames)</pre>
<div class="block">Constructs a new instance of NetworkEncryptionCipherPacket with the specified acknowledgement value and the specified ciphers.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>acknowledgement</code> - The acknowledgement value to use (Can be null).</dd>
<dd><code>cipherNames</code> - The cipher names.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - cipherNames is null.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="isAcknowledgement--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAcknowledgement</h4>
<pre>public&nbsp;boolean&nbsp;isAcknowledgement()</pre>
<div class="block">Gets if the class instance is an Acknowledgement.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IAcknowledgement.html#isAcknowledgement--">isAcknowledgement</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IAcknowledgement.html" title="interface in com.captainalm.lib.calmnet.packet">IAcknowledgement</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>If the class instance is an Acknowledgement.</dd>
</dl>
</li>
</ul>
<a name="isValid--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isValid</h4>
<pre>public&nbsp;boolean&nbsp;isValid()</pre>
<div class="block">Gets if the packet is valid.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html#isValid--">isValid</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Is the packet valid?</dd>
</dl>
</li>
</ul>
<a name="getProtocol--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProtocol</h4>
<pre>public&nbsp;<a href="../../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html" title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a>&nbsp;getProtocol()</pre>
<div class="block">Gets the protocol information.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html#getProtocol--">getProtocol</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The protocol information.</dd>
</dl>
</li>
</ul>
<a name="getTheProtocol--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTheProtocol</h4>
<pre>public static&nbsp;<a href="../../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html" title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a>&nbsp;getTheProtocol()</pre>
<div class="block">Gets the protocol information statically.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The protocol information.</dd>
</dl>
</li>
</ul>
<a name="savePayload--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>savePayload</h4>
<pre>public&nbsp;byte[]&nbsp;savePayload()
throws <a href="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html" title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<div class="block">Saves the packet payload to a byte array.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html#savePayload--">savePayload</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The packet payload data.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../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>
<a name="loadPayload-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>loadPayload</h4>
<pre>public&nbsp;void&nbsp;loadPayload(byte[]&nbsp;packetData)
throws <a href="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html" title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<div class="block">Loads the packet payload from save data.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html#loadPayload-byte:A-">loadPayload</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>packetData</code> - The packet payload data.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - The new store data is null.</dd>
<dd><code><a href="../../../../../../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>
<a name="readData-java.io.OutputStream-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readData</h4>
<pre>public&nbsp;void&nbsp;readData(java.io.OutputStream&nbsp;outputStream)
throws java.io.IOException,
<a href="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html" title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<div class="block">Reads payload data to an <code>OutputStream</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html#readData-java.io.OutputStream-">readData</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>outputStream</code> - The output stream to read data to.</dd>
<dt><span class="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><a href="../../../../../../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>
<a name="writeData-java.io.InputStream-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeData</h4>
<pre>public&nbsp;void&nbsp;writeData(java.io.InputStream&nbsp;inputStream,
int&nbsp;size)
throws java.io.IOException,
<a href="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html" title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<div class="block">Writes payload data from an <code>InputStream</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html#writeData-java.io.InputStream-int-">writeData</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<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><span class="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><a href="../../../../../../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>
<a name="getSize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSize</h4>
<pre>public&nbsp;int&nbsp;getSize()
throws <a href="../../../../../../com/captainalm/lib/calmnet/packet/PacketException.html" title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<div class="block">Gets the size of the output data.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html#getSize--">getSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IStreamedPacket</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The size of the output data in bytes.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../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>
<a name="getCiphers--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCiphers</h4>
<pre>public&nbsp;java.lang.String[]&nbsp;getCiphers()</pre>
<div class="block">Gets the cipher names this packet contains.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An array of cipher names.</dd>
</dl>
</li>
</ul>
<a name="setCiphers-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCiphers</h4>
<pre>public&nbsp;void&nbsp;setCiphers(java.lang.String[]&nbsp;cipherNames)</pre>
<div class="block">Sets the cipher names this packet contains.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cipherNames</code> - The array of cipher names.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - cipherNames is null.</dd>
</dl>
</li>
</ul>
<a name="isCacheUsed--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCacheUsed</h4>
<pre>public&nbsp;boolean&nbsp;isCacheUsed()</pre>
<div class="block">Gets if the cipher information is cached.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html#isCacheUsed--">isCacheUsed</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html" title="interface in com.captainalm.lib.calmnet.packet">IInternalCache</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>If the cipher information is cached.</dd>
</dl>
</li>
</ul>
<a name="setCacheUsed-boolean-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setCacheUsed</h4>
<pre>public&nbsp;void&nbsp;setCacheUsed(boolean&nbsp;used)</pre>
<div class="block">Sets if the cipher information is cached.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html#setCacheUsed-boolean-">setCacheUsed</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/captainalm/lib/calmnet/packet/IInternalCache.html" title="interface in com.captainalm.lib.calmnet.packet">IInternalCache</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>used</code> - If the cipher information is cached.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/EncryptedPacket.html" title="class in com.captainalm.lib.calmnet.packet.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../com/captainalm/lib/calmnet/packet/core/NetworkEncryptionUpgradePacket.html" title="class in com.captainalm.lib.calmnet.packet.core"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/captainalm/lib/calmnet/packet/core/NetworkEncryptionCipherPacket.html" target="_top">Frames</a></li>
<li><a href="NetworkEncryptionCipherPacket.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>