Mercurial Hosting > luan
annotate src/org/eclipse/jetty/server/ssl/SslSelectChannelConnector.java @ 875:b9aa175d9a29
remove Server.getThreadPool()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 04 Oct 2016 13:45:47 -0600 |
parents | 1c0b6841cd32 |
children | 150092cebf3e |
rev | line source |
---|---|
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
1 // |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
2 // ======================================================================== |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
3 // Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
4 // ------------------------------------------------------------------------ |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
5 // All rights reserved. This program and the accompanying materials |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
6 // are made available under the terms of the Eclipse Public License v1.0 |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
7 // and Apache License v2.0 which accompanies this distribution. |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
8 // |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
9 // The Eclipse Public License is available at |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
10 // http://www.eclipse.org/legal/epl-v10.html |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
11 // |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
12 // The Apache License v2.0 is available at |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
13 // http://www.opensource.org/licenses/apache2.0.php |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
14 // |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
15 // You may elect to redistribute this code under either of these licenses. |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
16 // ======================================================================== |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
17 // |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
18 |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
19 package org.eclipse.jetty.server.ssl; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
20 |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
21 import java.io.IOException; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
22 import java.nio.channels.SocketChannel; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
23 |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
24 import javax.net.ssl.SSLContext; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
25 import javax.net.ssl.SSLEngine; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
26 import javax.net.ssl.SSLSession; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
27 import javax.net.ssl.SSLSocket; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
28 |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
29 import org.eclipse.jetty.http.HttpSchemes; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
30 import org.eclipse.jetty.io.AsyncEndPoint; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
31 import org.eclipse.jetty.io.Buffers; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
32 import org.eclipse.jetty.io.Buffers.Type; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
33 import org.eclipse.jetty.io.BuffersFactory; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
34 import org.eclipse.jetty.io.EndPoint; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
35 import org.eclipse.jetty.io.RuntimeIOException; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
36 import org.eclipse.jetty.io.nio.AsyncConnection; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
37 import org.eclipse.jetty.io.nio.SslConnection; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
38 import org.eclipse.jetty.server.Request; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
39 import org.eclipse.jetty.server.nio.SelectChannelConnector; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
40 import org.eclipse.jetty.util.component.AggregateLifeCycle; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
41 import org.eclipse.jetty.util.ssl.SslContextFactory; |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
42 |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
43 /* ------------------------------------------------------------ */ |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
44 /** |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
45 * SslSelectChannelConnector. |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
46 * |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
47 * @org.apache.xbean.XBean element="sslConnector" description="Creates an NIO ssl connector" |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
48 */ |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
49 public class SslSelectChannelConnector extends SelectChannelConnector implements SslConnector |
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
50 { |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
51 private final SslContextFactory _sslContextFactory; |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
52 private Buffers _sslBuffers; |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
53 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
54 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
55 public SslSelectChannelConnector() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
56 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
57 this(new SslContextFactory(SslContextFactory.DEFAULT_KEYSTORE_PATH)); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
58 setSoLingerTime(30000); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
59 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
60 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
61 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
62 /** Construct with explicit SslContextFactory. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
63 * The SslContextFactory passed is added via {@link #addBean(Object)} so that |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
64 * it's lifecycle may be managed with {@link AggregateLifeCycle}. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
65 * @param sslContextFactory |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
66 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
67 public SslSelectChannelConnector(SslContextFactory sslContextFactory) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
68 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
69 _sslContextFactory = sslContextFactory; |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
70 addBean(_sslContextFactory); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
71 setUseDirectBuffers(false); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
72 setSoLingerTime(30000); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
73 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
74 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
75 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
76 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
77 * Allow the Listener a chance to customise the request. before the server |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
78 * does its stuff. <br> |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
79 * This allows the required attributes to be set for SSL requests. <br> |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
80 * The requirements of the Servlet specs are: |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
81 * <ul> |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
82 * <li> an attribute named "javax.servlet.request.ssl_session_id" of type |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
83 * String (since Servlet Spec 3.0).</li> |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
84 * <li> an attribute named "javax.servlet.request.cipher_suite" of type |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
85 * String.</li> |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
86 * <li> an attribute named "javax.servlet.request.key_size" of type Integer.</li> |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
87 * <li> an attribute named "javax.servlet.request.X509Certificate" of type |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
88 * java.security.cert.X509Certificate[]. This is an array of objects of type |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
89 * X509Certificate, the order of this array is defined as being in ascending |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
90 * order of trust. The first certificate in the chain is the one set by the |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
91 * client, the next is the one used to authenticate the first, and so on. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
92 * </li> |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
93 * </ul> |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
94 * |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
95 * @param endpoint |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
96 * The Socket the request arrived on. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
97 * @param request |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
98 * HttpRequest to be customised. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
99 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
100 @Override |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
101 public void customize(EndPoint endpoint, Request request) throws IOException |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
102 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
103 request.setScheme(HttpSchemes.HTTPS); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
104 super.customize(endpoint,request); |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
105 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
106 SslConnection.SslEndPoint sslEndpoint=(SslConnection.SslEndPoint)endpoint; |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
107 SSLEngine sslEngine=sslEndpoint.getSslEngine(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
108 SSLSession sslSession=sslEngine.getSession(); |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
109 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
110 SslCertificates.customize(sslSession,endpoint,request); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
111 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
112 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
113 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
114 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
115 * @return True if SSL re-negotiation is allowed (default false) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
116 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
117 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
118 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
119 public boolean isAllowRenegotiate() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
120 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
121 return _sslContextFactory.isAllowRenegotiate(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
122 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
123 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
124 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
125 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
126 * Set if SSL re-negotiation is allowed. CVE-2009-3555 discovered |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
127 * a vulnerability in SSL/TLS with re-negotiation. If your JVM |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
128 * does not have CVE-2009-3555 fixed, then re-negotiation should |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
129 * not be allowed. CVE-2009-3555 was fixed in Sun java 1.6 with a ban |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
130 * of renegotiate in u19 and with RFC5746 in u22. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
131 * @param allowRenegotiate true if re-negotiation is allowed (default false) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
132 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
133 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
134 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
135 public void setAllowRenegotiate(boolean allowRenegotiate) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
136 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
137 _sslContextFactory.setAllowRenegotiate(allowRenegotiate); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
138 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
139 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
140 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
141 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
142 * @see org.eclipse.jetty.server.ssl.SslConnector#getExcludeCipherSuites() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
143 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
144 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
145 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
146 public String[] getExcludeCipherSuites() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
147 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
148 return _sslContextFactory.getExcludeCipherSuites(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
149 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
150 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
151 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
152 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
153 * @see org.eclipse.jetty.server.ssl.SslConnector#setExcludeCipherSuites(java.lang.String[]) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
154 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
155 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
156 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
157 public void setExcludeCipherSuites(String[] cipherSuites) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
158 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
159 _sslContextFactory.setExcludeCipherSuites(cipherSuites); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
160 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
161 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
162 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
163 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
164 * @see org.eclipse.jetty.server.ssl.SslConnector#getExcludeCipherSuites() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
165 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
166 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
167 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
168 public String[] getIncludeCipherSuites() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
169 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
170 return _sslContextFactory.getIncludeCipherSuites(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
171 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
172 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
173 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
174 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
175 * @see org.eclipse.jetty.server.ssl.SslConnector#setExcludeCipherSuites(java.lang.String[]) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
176 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
177 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
178 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
179 public void setIncludeCipherSuites(String[] cipherSuites) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
180 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
181 _sslContextFactory.setIncludeCipherSuites(cipherSuites); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
182 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
183 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
184 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
185 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
186 * @see org.eclipse.jetty.server.ssl.SslConnector#setPassword(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
187 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
188 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
189 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
190 public void setPassword(String password) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
191 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
192 _sslContextFactory.setKeyStorePassword(password); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
193 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
194 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
195 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
196 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
197 * @see org.eclipse.jetty.server.ssl.SslConnector#setTrustPassword(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
198 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
199 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
200 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
201 public void setTrustPassword(String password) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
202 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
203 _sslContextFactory.setTrustStorePassword(password); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
204 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
205 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
206 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
207 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
208 * @see org.eclipse.jetty.server.ssl.SslConnector#setKeyPassword(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
209 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
210 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
211 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
212 public void setKeyPassword(String password) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
213 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
214 _sslContextFactory.setKeyManagerPassword(password); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
215 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
216 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
217 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
218 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
219 * Unsupported. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
220 * |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
221 * TODO: we should remove this as it is no longer an overridden method from SslConnector (like it was in the past) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
222 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
223 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
224 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
225 public String getAlgorithm() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
226 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
227 throw new UnsupportedOperationException(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
228 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
229 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
230 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
231 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
232 * Unsupported. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
233 * |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
234 * TODO: we should remove this as it is no longer an overridden method from SslConnector (like it was in the past) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
235 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
236 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
237 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
238 public void setAlgorithm(String algorithm) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
239 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
240 throw new UnsupportedOperationException(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
241 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
242 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
243 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
244 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
245 * @see org.eclipse.jetty.server.ssl.SslConnector#getProtocol() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
246 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
247 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
248 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
249 public String getProtocol() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
250 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
251 return _sslContextFactory.getProtocol(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
252 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
253 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
254 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
255 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
256 * @see org.eclipse.jetty.server.ssl.SslConnector#setProtocol(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
257 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
258 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
259 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
260 public void setProtocol(String protocol) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
261 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
262 _sslContextFactory.setProtocol(protocol); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
263 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
264 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
265 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
266 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
267 * @see org.eclipse.jetty.server.ssl.SslConnector#setKeystore(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
268 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
269 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
270 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
271 public void setKeystore(String keystore) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
272 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
273 _sslContextFactory.setKeyStorePath(keystore); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
274 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
275 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
276 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
277 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
278 * @see org.eclipse.jetty.server.ssl.SslConnector#getKeystore() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
279 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
280 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
281 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
282 public String getKeystore() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
283 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
284 return _sslContextFactory.getKeyStorePath(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
285 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
286 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
287 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
288 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
289 * @see org.eclipse.jetty.server.ssl.SslConnector#getKeystoreType() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
290 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
291 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
292 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
293 public String getKeystoreType() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
294 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
295 return _sslContextFactory.getKeyStoreType(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
296 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
297 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
298 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
299 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
300 * @see org.eclipse.jetty.server.ssl.SslConnector#getNeedClientAuth() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
301 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
302 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
303 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
304 public boolean getNeedClientAuth() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
305 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
306 return _sslContextFactory.getNeedClientAuth(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
307 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
308 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
309 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
310 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
311 * @see org.eclipse.jetty.server.ssl.SslConnector#getWantClientAuth() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
312 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
313 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
314 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
315 public boolean getWantClientAuth() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
316 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
317 return _sslContextFactory.getWantClientAuth(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
318 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
319 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
320 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
321 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
322 * @see org.eclipse.jetty.server.ssl.SslConnector#setNeedClientAuth(boolean) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
323 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
324 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
325 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
326 public void setNeedClientAuth(boolean needClientAuth) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
327 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
328 _sslContextFactory.setNeedClientAuth(needClientAuth); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
329 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
330 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
331 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
332 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
333 * @see org.eclipse.jetty.server.ssl.SslConnector#setWantClientAuth(boolean) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
334 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
335 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
336 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
337 public void setWantClientAuth(boolean wantClientAuth) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
338 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
339 _sslContextFactory.setWantClientAuth(wantClientAuth); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
340 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
341 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
342 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
343 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
344 * @see org.eclipse.jetty.server.ssl.SslConnector#setKeystoreType(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
345 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
346 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
347 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
348 public void setKeystoreType(String keystoreType) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
349 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
350 _sslContextFactory.setKeyStoreType(keystoreType); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
351 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
352 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
353 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
354 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
355 * @see org.eclipse.jetty.server.ssl.SslConnector#getProvider() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
356 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
357 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
358 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
359 public String getProvider() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
360 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
361 return _sslContextFactory.getProvider(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
362 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
363 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
364 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
365 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
366 * @see org.eclipse.jetty.server.ssl.SslConnector#getSecureRandomAlgorithm() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
367 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
368 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
369 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
370 public String getSecureRandomAlgorithm() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
371 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
372 return _sslContextFactory.getSecureRandomAlgorithm(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
373 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
374 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
375 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
376 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
377 * @see org.eclipse.jetty.server.ssl.SslConnector#getSslKeyManagerFactoryAlgorithm() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
378 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
379 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
380 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
381 public String getSslKeyManagerFactoryAlgorithm() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
382 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
383 return _sslContextFactory.getSslKeyManagerFactoryAlgorithm(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
384 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
385 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
386 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
387 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
388 * @see org.eclipse.jetty.server.ssl.SslConnector#getSslTrustManagerFactoryAlgorithm() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
389 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
390 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
391 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
392 public String getSslTrustManagerFactoryAlgorithm() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
393 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
394 return _sslContextFactory.getTrustManagerFactoryAlgorithm(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
395 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
396 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
397 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
398 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
399 * @see org.eclipse.jetty.server.ssl.SslConnector#getTruststore() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
400 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
401 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
402 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
403 public String getTruststore() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
404 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
405 return _sslContextFactory.getTrustStore(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
406 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
407 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
408 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
409 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
410 * @see org.eclipse.jetty.server.ssl.SslConnector#getTruststoreType() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
411 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
412 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
413 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
414 public String getTruststoreType() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
415 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
416 return _sslContextFactory.getTrustStoreType(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
417 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
418 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
419 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
420 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
421 * @see org.eclipse.jetty.server.ssl.SslConnector#setProvider(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
422 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
423 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
424 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
425 public void setProvider(String provider) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
426 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
427 _sslContextFactory.setProvider(provider); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
428 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
429 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
430 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
431 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
432 * @see org.eclipse.jetty.server.ssl.SslConnector#setSecureRandomAlgorithm(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
433 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
434 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
435 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
436 public void setSecureRandomAlgorithm(String algorithm) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
437 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
438 _sslContextFactory.setSecureRandomAlgorithm(algorithm); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
439 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
440 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
441 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
442 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
443 * @see org.eclipse.jetty.server.ssl.SslConnector#setSslKeyManagerFactoryAlgorithm(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
444 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
445 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
446 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
447 public void setSslKeyManagerFactoryAlgorithm(String algorithm) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
448 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
449 _sslContextFactory.setSslKeyManagerFactoryAlgorithm(algorithm); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
450 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
451 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
452 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
453 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
454 * @see org.eclipse.jetty.server.ssl.SslConnector#setSslTrustManagerFactoryAlgorithm(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
455 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
456 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
457 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
458 public void setSslTrustManagerFactoryAlgorithm(String algorithm) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
459 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
460 _sslContextFactory.setTrustManagerFactoryAlgorithm(algorithm); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
461 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
462 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
463 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
464 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
465 * @see org.eclipse.jetty.server.ssl.SslConnector#setTruststore(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
466 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
467 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
468 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
469 public void setTruststore(String truststore) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
470 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
471 _sslContextFactory.setTrustStore(truststore); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
472 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
473 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
474 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
475 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
476 * @see org.eclipse.jetty.server.ssl.SslConnector#setTruststoreType(java.lang.String) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
477 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
478 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
479 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
480 public void setTruststoreType(String truststoreType) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
481 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
482 _sslContextFactory.setTrustStoreType(truststoreType); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
483 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
484 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
485 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
486 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
487 * @see org.eclipse.jetty.server.ssl.SslConnector#setSslContext(javax.net.ssl.SSLContext) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
488 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
489 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
490 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
491 public void setSslContext(SSLContext sslContext) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
492 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
493 _sslContextFactory.setSslContext(sslContext); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
494 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
495 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
496 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
497 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
498 * @see org.eclipse.jetty.server.ssl.SslConnector#setSslContext(javax.net.ssl.SSLContext) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
499 * @deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
500 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
501 @Deprecated |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
502 public SSLContext getSslContext() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
503 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
504 return _sslContextFactory.getSslContext(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
505 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
506 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
507 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
508 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
509 * @see org.eclipse.jetty.server.ssl.SslConnector#getSslContextFactory() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
510 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
511 public SslContextFactory getSslContextFactory() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
512 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
513 return _sslContextFactory; |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
514 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
515 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
516 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
517 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
518 * By default, we're confidential, given we speak SSL. But, if we've been |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
519 * told about an confidential port, and said port is not our port, then |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
520 * we're not. This allows separation of listeners providing INTEGRAL versus |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
521 * CONFIDENTIAL constraints, such as one SSL listener configured to require |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
522 * client certs providing CONFIDENTIAL, whereas another SSL listener not |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
523 * requiring client certs providing mere INTEGRAL constraints. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
524 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
525 @Override |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
526 public boolean isConfidential(Request request) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
527 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
528 final int confidentialPort=getConfidentialPort(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
529 return confidentialPort==0||confidentialPort==request.getServerPort(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
530 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
531 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
532 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
533 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
534 * By default, we're integral, given we speak SSL. But, if we've been told |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
535 * about an integral port, and said port is not our port, then we're not. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
536 * This allows separation of listeners providing INTEGRAL versus |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
537 * CONFIDENTIAL constraints, such as one SSL listener configured to require |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
538 * client certs providing CONFIDENTIAL, whereas another SSL listener not |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
539 * requiring client certs providing mere INTEGRAL constraints. |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
540 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
541 @Override |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
542 public boolean isIntegral(Request request) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
543 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
544 final int integralPort=getIntegralPort(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
545 return integralPort==0||integralPort==request.getServerPort(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
546 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
547 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
548 /* ------------------------------------------------------------------------------- */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
549 @Override |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
550 protected AsyncConnection newConnection(SocketChannel channel, AsyncEndPoint endpoint) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
551 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
552 try |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
553 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
554 SSLEngine engine = createSSLEngine(channel); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
555 SslConnection connection = newSslConnection(endpoint, engine); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
556 AsyncConnection delegate = newPlainConnection(channel, connection.getSslEndPoint()); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
557 connection.getSslEndPoint().setConnection(delegate); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
558 connection.setAllowRenegotiate(_sslContextFactory.isAllowRenegotiate()); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
559 return connection; |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
560 } |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
561 catch (IOException e) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
562 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
563 throw new RuntimeIOException(e); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
564 } |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
565 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
566 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
567 protected AsyncConnection newPlainConnection(SocketChannel channel, AsyncEndPoint endPoint) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
568 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
569 return super.newConnection(channel, endPoint); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
570 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
571 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
572 protected SslConnection newSslConnection(AsyncEndPoint endpoint, SSLEngine engine) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
573 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
574 return new SslConnection(engine, endpoint); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
575 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
576 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
577 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
578 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
579 * @param channel A channel which if passed is used as to extract remote |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
580 * host and port for the purposes of SSL session caching |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
581 * @return A SSLEngine for a new or cached SSL Session |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
582 * @throws IOException if the SSLEngine cannot be created |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
583 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
584 protected SSLEngine createSSLEngine(SocketChannel channel) throws IOException |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
585 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
586 SSLEngine engine; |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
587 if (channel != null) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
588 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
589 String peerHost = channel.socket().getInetAddress().getHostAddress(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
590 int peerPort = channel.socket().getPort(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
591 engine = _sslContextFactory.newSslEngine(peerHost, peerPort); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
592 } |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
593 else |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
594 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
595 engine = _sslContextFactory.newSslEngine(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
596 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
597 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
598 engine.setUseClientMode(false); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
599 return engine; |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
600 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
601 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
602 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
603 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
604 * @see org.eclipse.jetty.server.nio.SelectChannelConnector#doStart() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
605 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
606 @Override |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
607 protected void doStart() throws Exception |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
608 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
609 _sslContextFactory.checkKeyStore(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
610 _sslContextFactory.start(); |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
611 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
612 SSLEngine sslEngine = _sslContextFactory.newSslEngine(); |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
613 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
614 sslEngine.setUseClientMode(false); |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
615 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
616 SSLSession sslSession = sslEngine.getSession(); |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
617 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
618 _sslBuffers = BuffersFactory.newBuffers( |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
619 getUseDirectBuffers()?Type.DIRECT:Type.INDIRECT,sslSession.getApplicationBufferSize(), |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
620 getUseDirectBuffers()?Type.DIRECT:Type.INDIRECT,sslSession.getApplicationBufferSize(), |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
621 getUseDirectBuffers()?Type.DIRECT:Type.INDIRECT,getMaxBuffers() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
622 ); |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
623 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
624 if (getRequestHeaderSize()<sslSession.getApplicationBufferSize()) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
625 setRequestHeaderSize(sslSession.getApplicationBufferSize()); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
626 if (getRequestBufferSize()<sslSession.getApplicationBufferSize()) |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
627 setRequestBufferSize(sslSession.getApplicationBufferSize()); |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
628 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
629 super.doStart(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
630 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
631 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
632 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
633 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
634 * @see org.eclipse.jetty.server.nio.SelectChannelConnector#doStop() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
635 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
636 @Override |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
637 protected void doStop() throws Exception |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
638 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
639 _sslBuffers=null; |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
640 super.doStop(); |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
641 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
642 |
872
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
643 /* ------------------------------------------------------------ */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
644 /** |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
645 * @return SSL buffers |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
646 */ |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
647 public Buffers getSslBuffers() |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
648 { |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
649 return _sslBuffers; |
1c0b6841cd32
remove SocketEndPoint
Franklin Schmidt <fschmidt@gmail.com>
parents:
802
diff
changeset
|
650 } |
802
3428c60d7cfc
replace jetty jars with source
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
651 } |