blob: dd2dcd913e9e237f109fab5067f63b0da9a37f96 [file] [log] [blame]
<!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_60) on Wed Sep 21 08:42:21 CEST 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SslContextFactory (Apache MINA 2.0.15 API)</title>
<meta name="date" content="2016-09-21">
<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="SslContextFactory (Apache MINA 2.0.15 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10};
var tabs = {65535:["t0","All 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="class-use/SslContextFactory.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/mina/filter/ssl/KeyStoreFactory.html" title="class in org.apache.mina.filter.ssl"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mina/filter/ssl/SslFilter.html" title="class in org.apache.mina.filter.ssl"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mina/filter/ssl/SslContextFactory.html" target="_top">Frames</a></li>
<li><a href="SslContextFactory.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">org.apache.mina.filter.ssl</div>
<h2 title="Class SslContextFactory" class="title">Class SslContextFactory</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mina.filter.ssl.SslContextFactory</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.51">SslContextFactory</a>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">A factory that creates and configures a new <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a>.
<p>
If no properties are set the returned <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> will
be equivalent to what the following creates:
<pre>
SSLContext c = SSLContext.getInstance( "TLS" );
c.init(null, null, null);
</pre>
<p>
Use the properties prefixed with <code>keyManagerFactory</code> to control
the creation of the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManager.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManager</code></a> to be used.
<p>
Use the properties prefixed with <code>trustManagerFactory</code> to control
the creation of the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a> to be used.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd><a href="http://mina.apache.org">Apache MINA Project</a></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="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#SslContextFactory--">SslContextFactory</a></span>()</code>&nbsp;</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="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><a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl">SSLContext</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#newInstance--">newInstance</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setClientSessionCacheSize-int-">setClientSessionCacheSize</a></span>(int&nbsp;size)</code>
<div class="block">Sets the SSLSession cache size for the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLSessionContext</code></a> for use in client mode.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setClientSessionTimeout-int-">setClientSessionTimeout</a></span>(int&nbsp;seconds)</code>
<div class="block">Set the SSLSession timeout limit for the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLSessionContext</code></a> for use in client mode.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactory-javax.net.ssl.KeyManagerFactory-">setKeyManagerFactory</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl">KeyManagerFactory</a>&nbsp;factory)</code>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a> to use.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryAlgorithm-java.lang.String-">setKeyManagerFactoryAlgorithm</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;algorithm)</code>
<div class="block">Sets the algorithm to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a>
using <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getInstance-java.lang.String-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getInstance(java.lang.String)</code></a> or
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getInstance-java.lang.String-java.lang.String-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getInstance(java.lang.String, java.lang.String)</code></a>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryAlgorithmUseDefault-boolean-">setKeyManagerFactoryAlgorithmUseDefault</a></span>(boolean&nbsp;useDefault)</code>
<div class="block">If this is set to <tt>true</tt> while no <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a>
has been set using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactory-javax.net.ssl.KeyManagerFactory-"><code>setKeyManagerFactory(KeyManagerFactory)</code></a> and
no algorithm has been set using
<a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryAlgorithm-java.lang.String-"><code>setKeyManagerFactoryAlgorithm(String)</code></a> the default algorithm
return by <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getDefaultAlgorithm--" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getDefaultAlgorithm()</code></a> will be used.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryKeyStore-java.security.KeyStore-">setKeyManagerFactoryKeyStore</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html?is-external=true" title="class or interface in java.security">KeyStore</a>&nbsp;keyStore)</code>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html?is-external=true" title="class or interface in java.security"><code>KeyStore</code></a> which will be used in the call to
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#init-java.security.KeyStore-char:A-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.init(java.security.KeyStore, char[])</code></a> when
the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> is created.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryKeyStorePassword-java.lang.String-">setKeyManagerFactoryKeyStorePassword</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)</code>
<div class="block">Sets the password which will be used in the call to
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#init-java.security.KeyStore-char:A-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.init(java.security.KeyStore, char[])</code></a> when
the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> is created.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryProvider-java.lang.String-">setKeyManagerFactoryProvider</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;provider)</code>
<div class="block">Sets the provider to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a>
using
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getInstance-java.lang.String-java.lang.String-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getInstance(java.lang.String, java.lang.String)</code></a>.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setProtocol-java.lang.String-">setProtocol</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;protocol)</code>
<div class="block">Sets the protocol to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a>.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setProvider-java.lang.String-">setProvider</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;provider)</code>
<div class="block">Sets the provider of the new <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a>.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setSecureRandom-java.security.SecureRandom-">setSecureRandom</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a>&nbsp;secureRandom)</code>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security"><code>SecureRandom</code></a> to use when initializing the
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a>.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setServerSessionCacheSize-int-">setServerSessionCacheSize</a></span>(int&nbsp;serverSessionCacheSize)</code>
<div class="block">Sets the SSLSession cache size for the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLSessionContext</code></a> for use in server mode.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setServerSessionTimeout-int-">setServerSessionTimeout</a></span>(int&nbsp;serverSessionTimeout)</code>
<div class="block">Set the SSLSession timeout limit for the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLSessionContext</code></a> for use in server mode.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactory-javax.net.ssl.TrustManagerFactory-">setTrustManagerFactory</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl">TrustManagerFactory</a>&nbsp;factory)</code>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a> to use.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryAlgorithm-java.lang.String-">setTrustManagerFactoryAlgorithm</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;algorithm)</code>
<div class="block">Sets the algorithm to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a>
using <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getInstance-java.lang.String-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getInstance(java.lang.String)</code></a> or
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getInstance-java.lang.String-java.lang.String-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getInstance(java.lang.String, java.lang.String)</code></a>.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryAlgorithmUseDefault-boolean-">setTrustManagerFactoryAlgorithmUseDefault</a></span>(boolean&nbsp;useDefault)</code>
<div class="block">If this is set to <tt>true</tt> while no <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a>
has been set using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactory-javax.net.ssl.TrustManagerFactory-"><code>setTrustManagerFactory(TrustManagerFactory)</code></a> and
no algorithm has been set using
<a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryAlgorithm-java.lang.String-"><code>setTrustManagerFactoryAlgorithm(String)</code></a> the default algorithm
return by <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getDefaultAlgorithm--" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getDefaultAlgorithm()</code></a> will be used.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryKeyStore-java.security.KeyStore-">setTrustManagerFactoryKeyStore</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html?is-external=true" title="class or interface in java.security">KeyStore</a>&nbsp;keyStore)</code>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html?is-external=true" title="class or interface in java.security"><code>KeyStore</code></a> which will be used in the call to
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#init-java.security.KeyStore-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.init(java.security.KeyStore)</code></a> when
the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> is created.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryParameters-javax.net.ssl.ManagerFactoryParameters-">setTrustManagerFactoryParameters</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/ManagerFactoryParameters.html?is-external=true" title="class or interface in javax.net.ssl">ManagerFactoryParameters</a>&nbsp;parameters)</code>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/ManagerFactoryParameters.html?is-external=true" title="class or interface in javax.net.ssl"><code>ManagerFactoryParameters</code></a> which will be used in the call to
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#init-javax.net.ssl.ManagerFactoryParameters-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.init(javax.net.ssl.ManagerFactoryParameters)</code></a> when
the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> is created.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryProvider-java.lang.String-">setTrustManagerFactoryProvider</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;provider)</code>
<div class="block">Sets the provider to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a>
using
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getInstance-java.lang.String-java.lang.String-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getInstance(java.lang.String, java.lang.String)</code></a>.</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.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></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="SslContextFactory--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SslContextFactory</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.51">SslContextFactory</a>()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="newInstance--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newInstance</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl">SSLContext</a>&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.91">newInstance</a>()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd>
</dl>
</li>
</ul>
<a name="setProvider-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setProvider</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.172">setProvider</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;provider)</pre>
<div class="block">Sets the provider of the new <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a>. The default value is
<tt>null</tt>, which means the default provider will be used.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>provider</code> - the name of the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> provider</dd>
</dl>
</li>
</ul>
<a name="setProtocol-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setProtocol</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.182">setProtocol</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;protocol)</pre>
<div class="block">Sets the protocol to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a>. The
default is <code>TLS</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>protocol</code> - the name of the protocol.</dd>
</dl>
</li>
</ul>
<a name="setKeyManagerFactoryAlgorithmUseDefault-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKeyManagerFactoryAlgorithmUseDefault</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.200">setKeyManagerFactoryAlgorithmUseDefault</a>(boolean&nbsp;useDefault)</pre>
<div class="block">If this is set to <tt>true</tt> while no <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a>
has been set using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactory-javax.net.ssl.KeyManagerFactory-"><code>setKeyManagerFactory(KeyManagerFactory)</code></a> and
no algorithm has been set using
<a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryAlgorithm-java.lang.String-"><code>setKeyManagerFactoryAlgorithm(String)</code></a> the default algorithm
return by <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getDefaultAlgorithm--" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getDefaultAlgorithm()</code></a> will be used.
The default value of this property is <tt>true</tt>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>useDefault</code> - <tt>true</tt> or <tt>false</tt>.</dd>
</dl>
</li>
</ul>
<a name="setTrustManagerFactoryAlgorithmUseDefault-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrustManagerFactoryAlgorithmUseDefault</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.214">setTrustManagerFactoryAlgorithmUseDefault</a>(boolean&nbsp;useDefault)</pre>
<div class="block">If this is set to <tt>true</tt> while no <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a>
has been set using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactory-javax.net.ssl.TrustManagerFactory-"><code>setTrustManagerFactory(TrustManagerFactory)</code></a> and
no algorithm has been set using
<a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryAlgorithm-java.lang.String-"><code>setTrustManagerFactoryAlgorithm(String)</code></a> the default algorithm
return by <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getDefaultAlgorithm--" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getDefaultAlgorithm()</code></a> will be used.
The default value of this property is <tt>true</tt>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>useDefault</code> - <tt>true</tt> or <tt>false</tt>.</dd>
</dl>
</li>
</ul>
<a name="setKeyManagerFactory-javax.net.ssl.KeyManagerFactory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKeyManagerFactory</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.225">setKeyManagerFactory</a>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl">KeyManagerFactory</a>&nbsp;factory)</pre>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a> to use. If this is set the properties
which are used by this factory bean to create a <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a>
will all be ignored.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>factory</code> - the factory.</dd>
</dl>
</li>
</ul>
<a name="setKeyManagerFactoryAlgorithm-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKeyManagerFactoryAlgorithm</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.245">setKeyManagerFactoryAlgorithm</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;algorithm)</pre>
<div class="block">Sets the algorithm to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a>
using <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getInstance-java.lang.String-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getInstance(java.lang.String)</code></a> or
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getInstance-java.lang.String-java.lang.String-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getInstance(java.lang.String, java.lang.String)</code></a>.
<p>
This property will be ignored if a <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a> has been
set directly using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactory-javax.net.ssl.KeyManagerFactory-"><code>setKeyManagerFactory(KeyManagerFactory)</code></a>.
<p>
If this property isn't set while no <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a> has been
set using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactory-javax.net.ssl.KeyManagerFactory-"><code>setKeyManagerFactory(KeyManagerFactory)</code></a> and
<a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryAlgorithmUseDefault-boolean-"><code>setKeyManagerFactoryAlgorithmUseDefault(boolean)</code></a> has been set to
<tt>true</tt> the value returned
by <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getDefaultAlgorithm--" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getDefaultAlgorithm()</code></a> will be used instead.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>algorithm</code> - the algorithm to use.</dd>
</dl>
</li>
</ul>
<a name="setKeyManagerFactoryProvider-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKeyManagerFactoryProvider</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.264">setKeyManagerFactoryProvider</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;provider)</pre>
<div class="block">Sets the provider to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a>
using
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getInstance-java.lang.String-java.lang.String-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getInstance(java.lang.String, java.lang.String)</code></a>.
<p>
This property will be ignored if a <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a> has been
set directly using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactory-javax.net.ssl.KeyManagerFactory-"><code>setKeyManagerFactory(KeyManagerFactory)</code></a>.
<p>
If this property isn't set and no <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a> has been set
using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactory-javax.net.ssl.KeyManagerFactory-"><code>setKeyManagerFactory(KeyManagerFactory)</code></a>
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#getInstance-java.lang.String-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.getInstance(java.lang.String)</code></a> will be used
to create the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>provider</code> - the name of the provider.</dd>
</dl>
</li>
</ul>
<a name="setKeyManagerFactoryKeyStore-java.security.KeyStore-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKeyManagerFactoryKeyStore</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.275">setKeyManagerFactoryKeyStore</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html?is-external=true" title="class or interface in java.security">KeyStore</a>&nbsp;keyStore)</pre>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html?is-external=true" title="class or interface in java.security"><code>KeyStore</code></a> which will be used in the call to
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#init-java.security.KeyStore-char:A-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.init(java.security.KeyStore, char[])</code></a> when
the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> is created.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keyStore</code> - the key store.</dd>
</dl>
</li>
</ul>
<a name="setKeyManagerFactoryKeyStorePassword-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKeyManagerFactoryKeyStorePassword</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.286">setKeyManagerFactoryKeyStorePassword</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)</pre>
<div class="block">Sets the password which will be used in the call to
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#init-java.security.KeyStore-char:A-" title="class or interface in javax.net.ssl"><code>KeyManagerFactory.init(java.security.KeyStore, char[])</code></a> when
the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> is created.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>password</code> - the password. Use <code>null</code> to disable password.</dd>
</dl>
</li>
</ul>
<a name="setTrustManagerFactory-javax.net.ssl.TrustManagerFactory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrustManagerFactory</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.302">setTrustManagerFactory</a>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl">TrustManagerFactory</a>&nbsp;factory)</pre>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a> to use. If this is set the
properties which are used by this factory bean to create a
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a> will all be ignored.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>factory</code> - the factory.</dd>
</dl>
</li>
</ul>
<a name="setTrustManagerFactoryAlgorithm-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrustManagerFactoryAlgorithm</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.322">setTrustManagerFactoryAlgorithm</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;algorithm)</pre>
<div class="block">Sets the algorithm to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a>
using <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getInstance-java.lang.String-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getInstance(java.lang.String)</code></a> or
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getInstance-java.lang.String-java.lang.String-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getInstance(java.lang.String, java.lang.String)</code></a>.
<p>
This property will be ignored if a <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a> has been
set directly using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactory-javax.net.ssl.TrustManagerFactory-"><code>setTrustManagerFactory(TrustManagerFactory)</code></a>.
<p>
If this property isn't set while no <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a> has been
set using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactory-javax.net.ssl.TrustManagerFactory-"><code>setTrustManagerFactory(TrustManagerFactory)</code></a> and
<a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryAlgorithmUseDefault-boolean-"><code>setTrustManagerFactoryAlgorithmUseDefault(boolean)</code></a> has been set to
<tt>true</tt> the value returned
by <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getDefaultAlgorithm--" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getDefaultAlgorithm()</code></a> will be used instead.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>algorithm</code> - the algorithm to use.</dd>
</dl>
</li>
</ul>
<a name="setTrustManagerFactoryKeyStore-java.security.KeyStore-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrustManagerFactoryKeyStore</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.336">setTrustManagerFactoryKeyStore</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html?is-external=true" title="class or interface in java.security">KeyStore</a>&nbsp;keyStore)</pre>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html?is-external=true" title="class or interface in java.security"><code>KeyStore</code></a> which will be used in the call to
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#init-java.security.KeyStore-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.init(java.security.KeyStore)</code></a> when
the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> is created.
<p>
This property will be ignored if <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/ManagerFactoryParameters.html?is-external=true" title="class or interface in javax.net.ssl"><code>ManagerFactoryParameters</code></a> has been
set directly using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryParameters-javax.net.ssl.ManagerFactoryParameters-"><code>setTrustManagerFactoryParameters(ManagerFactoryParameters)</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keyStore</code> - the key store.</dd>
</dl>
</li>
</ul>
<a name="setTrustManagerFactoryParameters-javax.net.ssl.ManagerFactoryParameters-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrustManagerFactoryParameters</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.347">setTrustManagerFactoryParameters</a>(<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/ManagerFactoryParameters.html?is-external=true" title="class or interface in javax.net.ssl">ManagerFactoryParameters</a>&nbsp;parameters)</pre>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/ManagerFactoryParameters.html?is-external=true" title="class or interface in javax.net.ssl"><code>ManagerFactoryParameters</code></a> which will be used in the call to
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#init-javax.net.ssl.ManagerFactoryParameters-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.init(javax.net.ssl.ManagerFactoryParameters)</code></a> when
the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a> is created.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>parameters</code> - describing provider-specific trust material.</dd>
</dl>
</li>
</ul>
<a name="setTrustManagerFactoryProvider-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrustManagerFactoryProvider</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.366">setTrustManagerFactoryProvider</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;provider)</pre>
<div class="block">Sets the provider to use when creating the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a>
using
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getInstance-java.lang.String-java.lang.String-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getInstance(java.lang.String, java.lang.String)</code></a>.
<p>
This property will be ignored if a <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a> has been
set directly using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactory-javax.net.ssl.TrustManagerFactory-"><code>setTrustManagerFactory(TrustManagerFactory)</code></a>.
<p>
If this property isn't set and no <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a> has been set
using <a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactory-javax.net.ssl.TrustManagerFactory-"><code>setTrustManagerFactory(TrustManagerFactory)</code></a>
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true#getInstance-java.lang.String-" title="class or interface in javax.net.ssl"><code>TrustManagerFactory.getInstance(java.lang.String)</code></a> will be used
to create the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>provider</code> - the name of the provider.</dd>
</dl>
</li>
</ul>
<a name="setSecureRandom-java.security.SecureRandom-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSecureRandom</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.378">setSecureRandom</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a>&nbsp;secureRandom)</pre>
<div class="block">Sets the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security"><code>SecureRandom</code></a> to use when initializing the
<a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLContext</code></a>. The JVM's default will be used if this isn't set.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>secureRandom</code> - the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security"><code>SecureRandom</code></a> or <code>null</code> if the
JVM's default should be used.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html?is-external=true#init-javax.net.ssl.KeyManager:A-javax.net.ssl.TrustManager:A-java.security.SecureRandom-" title="class or interface in javax.net.ssl"><code>SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], java.security.SecureRandom)</code></a></dd>
</dl>
</li>
</ul>
<a name="setClientSessionCacheSize-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setClientSessionCacheSize</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.388">setClientSessionCacheSize</a>(int&nbsp;size)</pre>
<div class="block">Sets the SSLSession cache size for the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLSessionContext</code></a> for use in client mode.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>size</code> - the new session cache size limit; zero means there is no limit.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true#setSessionCacheSize-int-" title="class or interface in javax.net.ssl"><code>SSLSessionContext.setSessionCacheSize(int size)</code></a></dd>
</dl>
</li>
</ul>
<a name="setClientSessionTimeout-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setClientSessionTimeout</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.398">setClientSessionTimeout</a>(int&nbsp;seconds)</pre>
<div class="block">Set the SSLSession timeout limit for the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLSessionContext</code></a> for use in client mode.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>seconds</code> - the new session timeout limit in seconds; zero means there is no limit.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true#setSessionTimeout-int-" title="class or interface in javax.net.ssl"><code>SSLSessionContext.setSessionTimeout(int seconds)</code></a></dd>
</dl>
</li>
</ul>
<a name="setServerSessionCacheSize-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setServerSessionCacheSize</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.408">setServerSessionCacheSize</a>(int&nbsp;serverSessionCacheSize)</pre>
<div class="block">Sets the SSLSession cache size for the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLSessionContext</code></a> for use in server mode.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>serverSessionCacheSize</code> - the new session cache size limit; zero means there is no limit.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true#setSessionCacheSize-int-" title="class or interface in javax.net.ssl"><code>SSLSessionContext.setSessionCacheSize(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="setServerSessionTimeout-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setServerSessionTimeout</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/mina/filter/ssl/SslContextFactory.html#line.418">setServerSessionTimeout</a>(int&nbsp;serverSessionTimeout)</pre>
<div class="block">Set the SSLSession timeout limit for the <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true" title="class or interface in javax.net.ssl"><code>SSLSessionContext</code></a> for use in server mode.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>serverSessionTimeout</code> - the new session timeout limit in seconds; zero means there is no limit.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSessionContext.html?is-external=true#setSessionTimeout-int-" title="class or interface in javax.net.ssl"><code>SSLSessionContext.setSessionTimeout(int)</code></a></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="class-use/SslContextFactory.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/mina/filter/ssl/KeyStoreFactory.html" title="class in org.apache.mina.filter.ssl"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mina/filter/ssl/SslFilter.html" title="class in org.apache.mina.filter.ssl"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mina/filter/ssl/SslContextFactory.html" target="_top">Frames</a></li>
<li><a href="SslContextFactory.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 ======= -->
<p class="legalCopy"><small>Copyright &#169; 2004&#x2013;2016 <a href="http://mina.apache.org/">Apache MINA Project</a>. All rights reserved.</small></p>
</body>
</html>