blob: 91a875ef658434605a346e075f7ae203f9548f03 [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 (version 1.7.0_55) on Wed Oct 22 07:01:18 CEST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>SslContextFactory (Apache MINA 2.0.9 API)</title>
<meta name="date" content="2014-10-22">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SslContextFactory (Apache MINA 2.0.9 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/mina/filter/ssl/SslFilter.html" title="class in org.apache.mina.filter.ssl"><span class="strong">Next 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 Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All 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/1.5.0/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.54">SslContextFactory</a>
extends <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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>
<p>
Use the properties prefixed with <code>keyManagerFactory</code> to control
the creation of the <a href="http://docs.oracle.com/javase/1.5.0/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>
<p>
Use the properties prefixed with <code>trustManagerFactory</code> to control
the creation of the <a href="http://docs.oracle.com/javase/1.5.0/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.
</p></div>
<dl><dt><span class="strong">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="overviewSummary" 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><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#SslContextFactory()">SslContextFactory</a></strong>()</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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/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><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#newInstance()">newInstance</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setClientSessionCacheSize(int)">setClientSessionCacheSize</a></strong>(int&nbsp;size)</code>
<div class="block">Sets the SSLSession cache size for the <a href="http://docs.oracle.com/javase/1.5.0/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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setClientSessionTimeout(int)">setClientSessionTimeout</a></strong>(int&nbsp;seconds)</code>
<div class="block">Set the SSLSession timeout limit for the <a href="http://docs.oracle.com/javase/1.5.0/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactory(javax.net.ssl.KeyManagerFactory)">setKeyManagerFactory</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryAlgorithm(java.lang.String)">setKeyManagerFactoryAlgorithm</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryAlgorithmUseDefault(boolean)">setKeyManagerFactoryAlgorithmUseDefault</a></strong>(boolean&nbsp;useDefault)</code>
<div class="block">If this is set to <code>true</code> while no <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryKeyStore(java.security.KeyStore)">setKeyManagerFactoryKeyStore</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#init(java.security.KeyStore, char[])" 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/1.5.0/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryKeyStorePassword(java.lang.String)">setKeyManagerFactoryKeyStorePassword</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#init(java.security.KeyStore, char[])" 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/1.5.0/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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setKeyManagerFactoryProvider(java.lang.String)">setKeyManagerFactoryProvider</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setProtocol(java.lang.String)">setProtocol</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setProvider(java.lang.String)">setProvider</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setSecureRandom(java.security.SecureRandom)">setSecureRandom</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setServerSessionCacheSize(int)">setServerSessionCacheSize</a></strong>(int&nbsp;serverSessionCacheSize)</code>
<div class="block">Sets the SSLSession cache size for the <a href="http://docs.oracle.com/javase/1.5.0/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setServerSessionTimeout(int)">setServerSessionTimeout</a></strong>(int&nbsp;serverSessionTimeout)</code>
<div class="block">Set the SSLSession timeout limit for the <a href="http://docs.oracle.com/javase/1.5.0/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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactory(javax.net.ssl.TrustManagerFactory)">setTrustManagerFactory</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryAlgorithm(java.lang.String)">setTrustManagerFactoryAlgorithm</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryAlgorithmUseDefault(boolean)">setTrustManagerFactoryAlgorithmUseDefault</a></strong>(boolean&nbsp;useDefault)</code>
<div class="block">If this is set to <code>true</code> while no <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryKeyStore(java.security.KeyStore)">setTrustManagerFactoryKeyStore</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryParameters(javax.net.ssl.ManagerFactoryParameters)">setTrustManagerFactoryParameters</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/mina/filter/ssl/SslContextFactory.html#setTrustManagerFactoryProvider(java.lang.String)">setTrustManagerFactoryProvider</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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.54">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/1.5.0/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.94">newInstance</a>()
throws <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/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.175">setProvider</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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="strong">Parameters:</span></dt><dd><code>provider</code> - the name of the <a href="http://docs.oracle.com/javase/1.5.0/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.185">setProtocol</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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="strong">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.203">setKeyManagerFactoryAlgorithmUseDefault</a>(boolean&nbsp;useDefault)</pre>
<div class="block">If this is set to <code>true</code> while no <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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="strong">Parameters:</span></dt><dd><code>useDefault</code> - <code>true</code> or <code>false</code>.</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.217">setTrustManagerFactoryAlgorithmUseDefault</a>(boolean&nbsp;useDefault)</pre>
<div class="block">If this is set to <code>true</code> while no <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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="strong">Parameters:</span></dt><dd><code>useDefault</code> - <code>true</code> or <code>false</code>.</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.228">setKeyManagerFactory</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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="strong">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.250">setKeyManagerFactoryAlgorithm</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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>
<p>
If this property isn't set while no <a href="http://docs.oracle.com/javase/1.5.0/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
<code>true</code> the value returned
by <a href="http://docs.oracle.com/javase/1.5.0/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.
</p></div>
<dl><dt><span class="strong">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.271">setKeyManagerFactoryProvider</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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>
<p>
If this property isn't set and no <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>KeyManagerFactory</code></a>.
</p></div>
<dl><dt><span class="strong">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.282">setKeyManagerFactoryKeyStore</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#init(java.security.KeyStore, char[])" 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/1.5.0/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="strong">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.293">setKeyManagerFactoryKeyStorePassword</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/docs/api/javax/net/ssl/KeyManagerFactory.html?is-external=true#init(java.security.KeyStore, char[])" 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/1.5.0/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="strong">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.309">setTrustManagerFactory</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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="strong">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.331">setTrustManagerFactoryAlgorithm</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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>
<p>
If this property isn't set while no <a href="http://docs.oracle.com/javase/1.5.0/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
<code>true</code> the value returned
by <a href="http://docs.oracle.com/javase/1.5.0/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.
</p></div>
<dl><dt><span class="strong">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.346">setTrustManagerFactoryKeyStore</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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>.
</p></div>
<dl><dt><span class="strong">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.357">setTrustManagerFactoryParameters</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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="strong">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.378">setTrustManagerFactoryProvider</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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>
<p>
If this property isn't set and no <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/docs/api/javax/net/ssl/TrustManagerFactory.html?is-external=true" title="class or interface in javax.net.ssl"><code>TrustManagerFactory</code></a>.
</p></div>
<dl><dt><span class="strong">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.390">setSecureRandom</a>(<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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="strong">Parameters:</span></dt><dd><code>secureRandom</code> - the <a href="http://docs.oracle.com/javase/1.5.0/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="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLContext.html?is-external=true#init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], 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.400">setClientSessionCacheSize</a>(int&nbsp;size)</pre>
<div class="block">Sets the SSLSession cache size for the <a href="http://docs.oracle.com/javase/1.5.0/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="strong">Parameters:</span></dt><dd><code>size</code> - the new session cache size limit; zero means there is no limit.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/1.5.0/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.410">setClientSessionTimeout</a>(int&nbsp;seconds)</pre>
<div class="block">Set the SSLSession timeout limit for the <a href="http://docs.oracle.com/javase/1.5.0/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="strong">Parameters:</span></dt><dd><code>seconds</code> - the new session timeout limit in seconds; zero means there is no limit.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/1.5.0/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.420">setServerSessionCacheSize</a>(int&nbsp;serverSessionCacheSize)</pre>
<div class="block">Sets the SSLSession cache size for the <a href="http://docs.oracle.com/javase/1.5.0/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="strong">Parameters:</span></dt><dd><code>serverSessionCacheSize</code> - the new session cache size limit; zero means there is no limit.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/1.5.0/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.430">setServerSessionTimeout</a>(int&nbsp;serverSessionTimeout)</pre>
<div class="block">Set the SSLSession timeout limit for the <a href="http://docs.oracle.com/javase/1.5.0/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="strong">Parameters:</span></dt><dd><code>serverSessionTimeout</code> - the new session timeout limit in seconds; zero means there is no limit.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/1.5.0/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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/mina/filter/ssl/SslFilter.html" title="class in org.apache.mina.filter.ssl"><span class="strong">Next 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 Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All 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;2014 <a href="http://mina.apache.org/">Apache MINA Project</a>. All rights reserved.</small></p>
</body>
</html>