# HG changeset patch # User uvangapally # Date 1511256336 28800 # Node ID 49e605998d2b8306218e6ddc7d843c6c74c45940 # Parent 5ab3961d20ddbd68097271d02619678b8f6d9de5 8191313: Deprecate RMIConnectorServer.CREDENTIAL_TYPES Summary: Deprecated RMIConnectorServer.CREDENTIAL_TYPES Reviewed-by: rriggs, dfuchs Contributed-by: ujwal.vangapally@oracle.com diff -r 5ab3961d20dd -r 49e605998d2b src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIConnectorServer.java --- a/src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIConnectorServer.java Tue Nov 21 09:56:35 2017 +0100 +++ b/src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIConnectorServer.java Tue Nov 21 01:25:36 2017 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -102,6 +102,26 @@ "jmx.remote.rmi.server.socket.factory"; /** + * 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. + *

+ * 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. + *

+ * 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()}