author | rehn |
Tue, 23 Oct 2018 13:24:36 +0200 | |
changeset 52227 | eadd0abbfdf4 |
parent 47425 | 96179f26139e |
permissions | -rw-r--r-- |
2 | 1 |
/* |
37584 | 2 |
* Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package javax.management.remote.rmi; |
|
27 |
||
28 |
import java.io.IOException; |
|
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
29 |
import java.io.ObjectInputFilter; |
2 | 30 |
import java.rmi.NoSuchObjectException; |
31 |
import java.rmi.Remote; |
|
32 |
import java.rmi.RemoteException; |
|
33 |
import java.rmi.server.RMIClientSocketFactory; |
|
34 |
import java.rmi.server.RMIServerSocketFactory; |
|
35 |
import java.rmi.server.UnicastRemoteObject; |
|
36 |
import java.rmi.server.RemoteObject; |
|
37 |
import java.util.Map; |
|
38 |
import java.util.Collections; |
|
39 |
import javax.security.auth.Subject; |
|
40 |
||
43503
bc7f8619ab70
8173607: JMX RMI connector should be in its own module
dfuchs
parents:
37584
diff
changeset
|
41 |
import com.sun.jmx.remote.internal.rmi.RMIExporter; |
1706
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
42 |
import com.sun.jmx.remote.util.EnvHelp; |
37584 | 43 |
import java.util.Arrays; |
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
44 |
import java.util.Set; |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
45 |
import java.util.stream.Collectors; |
37584 | 46 |
import sun.reflect.misc.ReflectUtil; |
1706
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
47 |
import sun.rmi.server.UnicastServerRef; |
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
48 |
import sun.rmi.server.UnicastServerRef2; |
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
49 |
import sun.rmi.transport.LiveRef; |
2 | 50 |
|
51 |
/** |
|
52 |
* <p>An {@link RMIServer} object that is exported through JRMP and that |
|
53 |
* creates client connections as RMI objects exported through JRMP. |
|
54 |
* User code does not usually reference this class directly.</p> |
|
55 |
* |
|
56 |
* @see RMIServerImpl |
|
57 |
* |
|
58 |
* @since 1.5 |
|
59 |
*/ |
|
60 |
public class RMIJRMPServerImpl extends RMIServerImpl { |
|
37584 | 61 |
|
2 | 62 |
/** |
63 |
* <p>Creates a new {@link RMIServer} object that will be exported |
|
64 |
* on the given port using the given socket factories.</p> |
|
65 |
* |
|
66 |
* @param port the port on which this object and the {@link |
|
67 |
* RMIConnectionImpl} objects it creates will be exported. Can be |
|
68 |
* zero, to indicate any available port. |
|
69 |
* |
|
70 |
* @param csf the client socket factory for the created RMI |
|
71 |
* objects. Can be null. |
|
72 |
* |
|
73 |
* @param ssf the server socket factory for the created RMI |
|
74 |
* objects. Can be null. |
|
75 |
* |
|
76 |
* @param env the environment map. Can be null. |
|
77 |
* |
|
78 |
* @exception IOException if the {@link RMIServer} object |
|
79 |
* cannot be created. |
|
80 |
* |
|
81 |
* @exception IllegalArgumentException if <code>port</code> is |
|
82 |
* negative. |
|
83 |
*/ |
|
84 |
public RMIJRMPServerImpl(int port, |
|
85 |
RMIClientSocketFactory csf, |
|
86 |
RMIServerSocketFactory ssf, |
|
87 |
Map<String,?> env) |
|
88 |
throws IOException { |
|
89 |
||
90 |
super(env); |
|
91 |
||
92 |
if (port < 0) |
|
93 |
throw new IllegalArgumentException("Negative port: " + port); |
|
94 |
||
95 |
this.port = port; |
|
96 |
this.csf = csf; |
|
97 |
this.ssf = ssf; |
|
98 |
this.env = (env == null) ? Collections.<String, Object>emptyMap() : env; |
|
37584 | 99 |
|
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
100 |
// This attribute was represented by RMIConnectorServer.CREDENTIALS_TYPES. |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
101 |
// This attribute is superceded by |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
102 |
// RMIConnectorServer.CREDENTIALS_FILTER_PATTERN. |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
103 |
// Retaining this for backward compatibility. |
37584 | 104 |
String[] credentialsTypes |
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
105 |
= (String[]) this.env.get("jmx.remote.rmi.server.credential.types"); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
106 |
|
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
107 |
String credentialsFilter |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
108 |
= (String) this.env.get(RMIConnectorServer.CREDENTIALS_FILTER_PATTERN); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
109 |
|
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
110 |
// It is impossible for both attributes to be specified |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
111 |
if(credentialsTypes != null && credentialsFilter != null) |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
112 |
throw new IllegalArgumentException("Cannot specify both \"" |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
113 |
+ "jmx.remote.rmi.server.credential.types" + "\" and \"" |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
114 |
+ RMIConnectorServer.CREDENTIALS_FILTER_PATTERN + "\""); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
115 |
else if(credentialsFilter != null){ |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
116 |
cFilter = ObjectInputFilter.Config.createFilter(credentialsFilter); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
117 |
allowedTypes = null; |
37584 | 118 |
} |
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
119 |
else if (credentialsTypes != null) { |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
120 |
allowedTypes = Arrays.stream(credentialsTypes).filter( |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
121 |
s -> s!= null).collect(Collectors.toSet()); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
122 |
allowedTypes.stream().forEach(ReflectUtil::checkPackageAccess); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
123 |
cFilter = this::newClientCheckInput; |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
124 |
} else { |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
125 |
allowedTypes = null; |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
126 |
cFilter = null; |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
127 |
} |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
128 |
|
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
129 |
String userJmxFilter = |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
130 |
(String) this.env.get(RMIConnectorServer.SERIAL_FILTER_PATTERN); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
131 |
if(userJmxFilter != null && !userJmxFilter.isEmpty()) |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
132 |
jmxRmiFilter = ObjectInputFilter.Config.createFilter(userJmxFilter); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
133 |
else |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
134 |
jmxRmiFilter = null; |
2 | 135 |
} |
136 |
||
137 |
protected void export() throws IOException { |
|
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
138 |
export(this, cFilter); |
2 | 139 |
} |
140 |
||
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
141 |
private void export(Remote obj, ObjectInputFilter typeFilter) throws RemoteException { |
1706
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
142 |
final RMIExporter exporter = |
2 | 143 |
(RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE); |
1706
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
144 |
final boolean daemon = EnvHelp.isServerDaemon(env); |
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
145 |
|
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
146 |
if (daemon && exporter != null) { |
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
147 |
throw new IllegalArgumentException("If "+EnvHelp.JMX_SERVER_DAEMON+ |
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
148 |
" is specified as true, "+RMIExporter.EXPORTER_ATTRIBUTE+ |
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
149 |
" cannot be used to specify an exporter!"); |
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
150 |
} |
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
151 |
|
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
152 |
if (exporter != null) { |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
153 |
exporter.exportObject(obj, port, csf, ssf, typeFilter); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
154 |
} else { |
1706
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
155 |
if (csf == null && ssf == null) { |
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
156 |
new UnicastServerRef(new LiveRef(port), typeFilter).exportObject(obj, null, daemon); |
1706
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
157 |
} else { |
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
158 |
new UnicastServerRef2(port, csf, ssf, typeFilter).exportObject(obj, null, daemon); |
1706
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
159 |
} |
4a382455c04d
6760712: Provide a connector server option that causes it not to prevent the VM from exiting
sjiang
parents:
2
diff
changeset
|
160 |
} |
2 | 161 |
} |
162 |
||
163 |
private void unexport(Remote obj, boolean force) |
|
164 |
throws NoSuchObjectException { |
|
165 |
RMIExporter exporter = |
|
166 |
(RMIExporter) env.get(RMIExporter.EXPORTER_ATTRIBUTE); |
|
167 |
if (exporter == null) |
|
168 |
UnicastRemoteObject.unexportObject(obj, force); |
|
169 |
else |
|
170 |
exporter.unexportObject(obj, force); |
|
171 |
} |
|
172 |
||
173 |
protected String getProtocol() { |
|
174 |
return "rmi"; |
|
175 |
} |
|
176 |
||
177 |
/** |
|
178 |
* <p>Returns a serializable stub for this {@link RMIServer} object.</p> |
|
179 |
* |
|
180 |
* @return a serializable stub. |
|
181 |
* |
|
182 |
* @exception IOException if the stub cannot be obtained - e.g the |
|
183 |
* RMIJRMPServerImpl has not been exported yet. |
|
184 |
*/ |
|
185 |
public Remote toStub() throws IOException { |
|
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
186 |
return RemoteObject.toStub(this); |
2 | 187 |
} |
188 |
||
189 |
/** |
|
190 |
* <p>Creates a new client connection as an RMI object exported |
|
191 |
* through JRMP. The port and socket factories for the new |
|
192 |
* {@link RMIConnection} object are the ones supplied |
|
193 |
* to the <code>RMIJRMPServerImpl</code> constructor.</p> |
|
194 |
* |
|
195 |
* @param connectionId the ID of the new connection. Every |
|
196 |
* connection opened by this connector server will have a |
|
197 |
* different id. The behavior is unspecified if this parameter is |
|
198 |
* null. |
|
199 |
* |
|
200 |
* @param subject the authenticated subject. Can be null. |
|
201 |
* |
|
202 |
* @return the newly-created <code>RMIConnection</code>. |
|
203 |
* |
|
204 |
* @exception IOException if the new {@link RMIConnection} |
|
205 |
* object cannot be created or exported. |
|
206 |
*/ |
|
207 |
protected RMIConnection makeClient(String connectionId, Subject subject) |
|
208 |
throws IOException { |
|
209 |
||
210 |
if (connectionId == null) |
|
211 |
throw new NullPointerException("Null connectionId"); |
|
212 |
||
213 |
RMIConnection client = |
|
214 |
new RMIConnectionImpl(this, connectionId, getDefaultClassLoader(), |
|
215 |
subject, env); |
|
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
216 |
export(client, jmxRmiFilter); |
2 | 217 |
return client; |
218 |
} |
|
219 |
||
220 |
protected void closeClient(RMIConnection client) throws IOException { |
|
221 |
unexport(client, true); |
|
222 |
} |
|
223 |
||
224 |
/** |
|
225 |
* <p>Called by {@link #close()} to close the connector server by |
|
226 |
* unexporting this object. After returning from this method, the |
|
227 |
* connector server must not accept any new connections.</p> |
|
228 |
* |
|
229 |
* @exception IOException if the attempt to close the connector |
|
230 |
* server failed. |
|
231 |
*/ |
|
232 |
protected void closeServer() throws IOException { |
|
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
233 |
unexport(this, true); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
234 |
} |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
235 |
|
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
236 |
/** |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
237 |
* Check that a type in the remote invocation of {@link RMIServerImpl#newClient} |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
238 |
* is one of the {@code allowedTypes}. |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
239 |
* |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
240 |
* @param clazz the class; may be null |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
241 |
* @param size the size for arrays, otherwise is 0 |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
242 |
* @param nObjectRefs the current number of object references |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
243 |
* @param depth the current depth |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
244 |
* @param streamBytes the current number of bytes consumed |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
245 |
* @return {@code ObjectInputFilter.Status.ALLOWED} if the class is allowed, |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
246 |
* otherwise {@code ObjectInputFilter.Status.REJECTED} |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
247 |
*/ |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
248 |
ObjectInputFilter.Status newClientCheckInput(ObjectInputFilter.FilterInfo filterInfo) { |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
249 |
ObjectInputFilter.Status status = ObjectInputFilter.Status.UNDECIDED; |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
250 |
if (allowedTypes != null && filterInfo.serialClass() != null) { |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
251 |
// If enabled, check type |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
252 |
String type = filterInfo.serialClass().getName(); |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
253 |
if (allowedTypes.contains(type)) |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
254 |
status = ObjectInputFilter.Status.ALLOWED; |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
255 |
else |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
256 |
status = ObjectInputFilter.Status.REJECTED; |
37584 | 257 |
} |
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
258 |
return status; |
2 | 259 |
} |
260 |
||
261 |
private final int port; |
|
262 |
private final RMIClientSocketFactory csf; |
|
263 |
private final RMIServerSocketFactory ssf; |
|
264 |
private final Map<String, ?> env; |
|
47425
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
265 |
private final Set<String> allowedTypes; |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
266 |
private final ObjectInputFilter jmxRmiFilter; |
96179f26139e
8187556: Backout of a fix reintroduced a dependency that had since been removed
jwilhelm
parents:
47216
diff
changeset
|
267 |
private final ObjectInputFilter cFilter; |
2 | 268 |
} |