From 6b3fc63826a10ceea241f1813181de07d692f5b5 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 15 Jun 2021 15:03:13 +0000
Subject: [PATCH] getRealm wieder entfernt, hasRole hinzugefuegt

---
 src/de/uhilger/httpserver/oauth/BearerAuthenticator.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/de/uhilger/httpserver/oauth/BearerAuthenticator.java b/src/de/uhilger/httpserver/oauth/BearerAuthenticator.java
index 57203f9..53cf7d3 100644
--- a/src/de/uhilger/httpserver/oauth/BearerAuthenticator.java
+++ b/src/de/uhilger/httpserver/oauth/BearerAuthenticator.java
@@ -349,6 +349,14 @@
     this.realm = realm;
   }
   
+  //public Realm getRealm() {
+  //  return realm;
+  //}
+  
+  public boolean hasRole(String userId, String roleId) {
+    return realm.hasRole(userId, roleId);
+  }
+  
   public void setWWWAuthRealm(String wwwAuthRealm) {
     this.wwwAuthRealm = wwwAuthRealm;
   }

--
Gitblit v1.9.3