📄 sslcontextfactory.html
字号:
<DT><B>Parameters:</B><DD><CODE>algorithm</CODE> - the algorithm to use.</DL></DD></DL><HR><A NAME="setTrustManagerFactoryKeyStore(java.security.KeyStore)"><!-- --></A><H3>setTrustManagerFactoryKeyStore</H3><PRE>public void <B>setTrustManagerFactoryKeyStore</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/KeyStore.html?is-external=true" title="class or interface in java.security">KeyStore</A> keyStore)</PRE><DL><DD>Sets the <A HREF="http://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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><P><DD><DL><DT><B>Parameters:</B><DD><CODE>keyStore</CODE> - the key store.</DL></DD></DL><HR><A NAME="setTrustManagerFactoryParameters(javax.net.ssl.ManagerFactoryParameters)"><!-- --></A><H3>setTrustManagerFactoryParameters</H3><PRE>public void <B>setTrustManagerFactoryParameters</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/net/ssl/ManagerFactoryParameters.html?is-external=true" title="class or interface in javax.net.ssl">ManagerFactoryParameters</A> parameters)</PRE><DL><DD>Sets the <A HREF="http://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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><DD><DL><DT><B>Parameters:</B><DD><CODE>parameters</CODE> - describing provider-specific trust material.</DL></DD></DL><HR><A NAME="setTrustManagerFactoryProvider(java.lang.String)"><!-- --></A><H3>setTrustManagerFactoryProvider</H3><PRE>public void <B>setTrustManagerFactoryProvider</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> provider)</PRE><DL><DD>Sets the provider to use when creating the <A HREF="http://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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><P><DD><DL><DT><B>Parameters:</B><DD><CODE>provider</CODE> - the name of the provider.</DL></DD></DL><HR><A NAME="setSecureRandom(java.security.SecureRandom)"><!-- --></A><H3>setSecureRandom</H3><PRE>public void <B>setSecureRandom</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</A> secureRandom)</PRE><DL><DD>Sets the <A HREF="http://java.sun.com/j2se/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://java.sun.com/j2se/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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>secureRandom</CODE> - the <A HREF="http://java.sun.com/j2se/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.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/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></DL></DD></DL><HR><A NAME="setClientSessionCacheSize(int)"><!-- --></A><H3>setClientSessionCacheSize</H3><PRE>public void <B>setClientSessionCacheSize</B>(int size)</PRE><DL><DD>Sets the SSLSession cache size for the <A HREF="http://java.sun.com/j2se/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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the new session cache size limit; zero means there is no limit.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/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></DL></DD></DL><HR><A NAME="setClientSessionTimeout(int)"><!-- --></A><H3>setClientSessionTimeout</H3><PRE>public void <B>setClientSessionTimeout</B>(int seconds)</PRE><DL><DD>Set the SSLSession timeout limit for the <A HREF="http://java.sun.com/j2se/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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>seconds</CODE> - the new session timeout limit in seconds; zero means there is no limit.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/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></DL></DD></DL><HR><A NAME="setServerSessionCacheSize(int)"><!-- --></A><H3>setServerSessionCacheSize</H3><PRE>public void <B>setServerSessionCacheSize</B>(int serverSessionCacheSize)</PRE><DL><DD>Sets the SSLSession cache size for the <A HREF="http://java.sun.com/j2se/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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>serverSessionCacheSize</CODE> - the new session cache size limit; zero means there is no limit.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/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></DL></DD></DL><HR><A NAME="setServerSessionTimeout(int)"><!-- --></A><H3>setServerSessionTimeout</H3><PRE>public void <B>setServerSessionTimeout</B>(int serverSessionTimeout)</PRE><DL><DD>Set the SSLSession timeout limit for the <A HREF="http://java.sun.com/j2se/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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>serverSessionTimeout</CODE> - the new session timeout limit in seconds; zero means there is no limit.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/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></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SslContextFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../org/apache/mina/filter/ssl/KeyStoreFactory.html" title="class in org.apache.mina.filter.ssl"><B>PREV CLASS</B></A> <A HREF="../../../../../org/apache/mina/filter/ssl/SslFilter.html" title="class in org.apache.mina.filter.ssl"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/mina/filter/ssl/SslContextFactory.html" target="_top"><B>FRAMES</B></A> <A HREF="SslContextFactory.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright 漏 2004-2008 <a href="http://mina.apache.org/">Apache MINA Project</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -