-
CSR
-
Resolution: Approved
-
P2
-
None
-
source
-
minimal
-
Java API
-
SE
Summary
Restores and deprecates a constant RMIConnectorServer.CREDENTIALS_ TYPES that was added in JDK 9 and removed in JDK 10 without having been deprecated.
Problem
RMIConnectorServer.CREDENTIALS_ TYPES was removed from JDK 10 without deprecating.
Solution
Restoring RMIConnectorServer.CREDENTIAL_TYPES. Marking RMIConnectorServer.CREDENTIAL_TYPES as deprecated because it is superseded by RMIConnectorServer.CREDENTIALS_FILTER_PATTERN.
Specification
/**
+ * Name of the attribute that specifies a list of class names acceptable
+ * as parameters to the {@link RMIServer#newClient(java.lang.Object) RMIServer.newClient()}
+ * remote method call.
+ * <p>
+ * This list of classes should correspond to the transitive closure of the
+ * credentials class (or classes) used by the installed {@linkplain JMXAuthenticator}
+ * associated with the {@linkplain RMIServer} implementation.
+ * <p>
+ * If the attribute is not set, or is null, then any class is
+ * deemed acceptable.
+ *
+ * @deprecated Use {@link #CREDENTIALS_FILTER_PATTERN} with a
+ * {@linkplain java.io.ObjectInputFilter.Config#createFilter
+ * filter pattern} string instead.
+ */
+ @Deprecated(since="10", forRemoval=true)
+ public static final String CREDENTIAL_TYPES =
+ "jmx.remote.rmi.server.credential.types";
+
+ /**
* Name of the attribute that specifies an
* {@link ObjectInputFilter} pattern string to filter classes acceptable
* for {@link RMIServer#newClient(java.lang.Object) RMIServer.newClient()}
- csr of
-
JDK-8191313 Deprecate RMIConnectorServer.CREDENTIAL_TYPES
-
- Closed
-