You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mi...@apache.org on 2019/12/05 10:30:14 UTC

[tomcat] branch master updated: BZ 63987: Deprecate Realm#getRoles(Principal)

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/master by this push:
     new 37044b3  BZ 63987: Deprecate Realm#getRoles(Principal)
37044b3 is described below

commit 37044b36368fa8aa9a15fd59b93486addfafdcc8
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Thu Dec 5 11:29:23 2019 +0100

    BZ 63987: Deprecate Realm#getRoles(Principal)
---
 java/org/apache/catalina/Realm.java | 2 ++
 webapps/docs/changelog.xml          | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/java/org/apache/catalina/Realm.java b/java/org/apache/catalina/Realm.java
index ad3f6b2..7fa8f54 100644
--- a/java/org/apache/catalina/Realm.java
+++ b/java/org/apache/catalina/Realm.java
@@ -229,7 +229,9 @@ public interface Realm extends Contained {
      * Return roles associated with given principal
      * @param principal the {@link Principal} to get the roles for.
      * @return principal roles
+     * @deprecated This will be removed in Tomcat 10.
      */
+    @Deprecated
     public String[] getRoles(Principal principal);
 
 
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index b5d896b..19aafe6 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -87,6 +87,9 @@
         opened that could reach the OS limit before being released by GC.
         (markt)
       </fix>
+      <update>
+        <bug>63987</bug>: Deprecate <code>Realm.getRoles(Principal)</code>. (michaelo)
+      </update>
     </changelog>
   </subsection>
   <subsection name="Coyote">


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org