<li><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl"><spanclass="typeNameLink">Next Class</span></a></li>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></pre>
<divclass="block">Loads a Keystore of a certain type from a file given the password.</div>
<dd><code>type</code> - The type of keystore (pass null for the default type).</dd>
<dd><code>file</code> - The file to load the keystore from.</dd>
<dd><code>password</code> - The password of the keystore (Can be null).</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The keystore.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - file is null.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An Exception has occurred.</dd>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></pre>
<divclass="block">Gets the SSL context without the JRE Trust Store using a unified <code>KeyStore</code>.</div>
<dd><code>algorithmName</code> - The name of the context protocol or null for the JRE Default (TLSv1).</dd>
<dd><code>unifiedKeyStore</code> - The keystore for use with the private and trust stores.</dd>
<dd><code>keyStorePassword</code> - The password of the key store or null (Use "changeit" for JKS keystore defaults).</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The SSLContext.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An Exception has occurred.</dd>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></pre>
<divclass="block">Gets the SSL context without the JRE Trust Store using separate private and trust <code>KeyStore</code>s.</div>
<dd><code>algorithmName</code> - The name of the context protocol or null for the JRE Default (TLSv1).</dd>
<dd><code>privateKeyStore</code> - The keystore for use with the private store.</dd>
<dd><code>privateKeyStorePassword</code> - The password of the private key store or null (Use "changeit" for JKS keystore defaults).</dd>
<dd><code>trustKeyStore</code> - The keystore for use with the trust store.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The SSLContext.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An Exception has occurred.</dd>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></pre>
<divclass="block">Gets the SSL context merged with the JRE Trust Store using a unified <code>KeyStore</code>.</div>
<dd><code>algorithmName</code> - The name of the context protocol or null for the JRE Default (TLSv1).</dd>
<dd><code>unifiedKeyStore</code> - The keystore for use with the private and trust stores.</dd>
<dd><code>keyStorePassword</code> - The password of the key store or null (Use "changeit" for JKS keystore defaults).</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The SSLContext.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An Exception has occurred.</dd>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></pre>
<divclass="block">Gets the SSL context merged with the JRE Trust Store using separate private and trust <code>KeyStore</code>s.</div>
<dd><code>algorithmName</code> - The name of the context protocol or null for the JRE Default (TLSv1).</dd>
<dd><code>privateKeyStore</code> - The keystore for use with the private store.</dd>
<dd><code>privateKeyStorePassword</code> - The password of the private key store or null (Use "changeit" for JKS keystore defaults).</dd>
<dd><code>trustKeyStore</code> - The keystore for use with the trust store.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The SSLContext.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An Exception has occurred.</dd>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></pre>
<divclass="block">Creates a new <code>SSLSocket</code> using the specified <code>SSLContext</code>, host and port.</div>
<dd><code>sslContext</code> - The SSL Context to create the socket from.</dd>
<dd><code>host</code> - The host to connect to.</dd>
<dd><code>port</code> - The port to connect to.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The SSLSocket.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An Exception has occurred.</dd>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></pre>
<divclass="block">Upgrades an existing <code>Socket</code> to an <code>SSLSocket</code> using the specified <code>SSLContext</code>,
<code>Socket</code>, host, port and if the specified socket should be closed when the returned socket is closed.
This socket is in client mode (Upgrade for client side).</div>
<dd><code>sslContext</code> - The SSL Context to create the socket from.</dd>
<dd><code>socket</code> - The socket to wrap.</dd>
<dd><code>host</code> - The host to "connect" to.</dd>
<dd><code>port</code> - The port to "connect" to.</dd>
<dd><code>autoClose</code> - If the underlying socket should be closed when the returned socket is closed.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The SSLSocket.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An Exception has occurred.</dd>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></pre>
<divclass="block">Upgrades an existing <code>Socket</code> to an <code>SSLSocket</code> using the specified <code>SSLContext</code>,
<code>Socket</code>, host, port and if the specified socket should be closed when the returned socket is closed.</div>
<dd><code>sslContext</code> - The SSL Context to create the socket from.</dd>
<dd><code>socket</code> - The socket to wrap.</dd>
<dd><code>host</code> - The host to "connect" to.</dd>
<dd><code>port</code> - The port to "connect" to.</dd>
<dd><code>autoClose</code> - If the underlying socket should be closed when the returned socket is closed.</dd>
<dd><code>onClient</code> - Is this being called on the client side.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The SSLSocket.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An Exception has occurred.</dd>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></pre>
<divclass="block">Gets the SSL Server socket for the specified <code>SSLContext</code>, port, backlog and <code>InetAddress</code>.</div>
<dd><code>sslContext</code> - The SSL Context to create the socket from.</dd>
<dd><code>port</code> - The port to listen on.</dd>
<dd><code>backlog</code> - The number of connections that can be queued.</dd>
<dd><code>ifAddress</code> - The network interface to listen on (null means listen on all network interfaces).</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The SSLServerSocket.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An Exception has occurred.</dd>
<li><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl"><spanclass="typeNameLink">Next Class</span></a></li>