From 0ba09c2338d0f61a8da41fd775ff0229b6437efe Mon Sep 17 00:00:00 2001 From: jeffcheasey88 <66554203+jeffcheasey88@users.noreply.github.com> Date: Wed, 26 Jul 2023 11:57:33 +0200 Subject: [PATCH] Remove keys from users --- src/be/jeffcheasey88/peeratcode/framework/Router.java | 4 +++- src/be/jeffcheasey88/peeratcode/framework/User.java | 11 ----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/be/jeffcheasey88/peeratcode/framework/Router.java b/src/be/jeffcheasey88/peeratcode/framework/Router.java index 02e843e..6b39668 100644 --- a/src/be/jeffcheasey88/peeratcode/framework/Router.java +++ b/src/be/jeffcheasey88/peeratcode/framework/Router.java @@ -21,7 +21,9 @@ import org.jose4j.jwt.JwtClaims; import org.jose4j.lang.JoseException; public class Router{ - + + public static void main(String[] args){} + private Map> responses; private Map patterns; private Response noFileFound; diff --git a/src/be/jeffcheasey88/peeratcode/framework/User.java b/src/be/jeffcheasey88/peeratcode/framework/User.java index f2e107c..663c0f0 100644 --- a/src/be/jeffcheasey88/peeratcode/framework/User.java +++ b/src/be/jeffcheasey88/peeratcode/framework/User.java @@ -2,25 +2,14 @@ package be.jeffcheasey88.peeratcode.framework; import org.jose4j.jwt.JwtClaims; -import be.jeffcheasey88.peeratcode.framework.Locker.Key; - public class User{ private int id; - private Key key; public User(JwtClaims jwtClaims){ this.id = ((Long) jwtClaims.getClaimValue("id")).intValue(); } - public void setKey(Key key){ - this.key = key; - } - - public Key getKey(){ - return this.key; - } - public int getId(){ return this.id; }