Remove keys from users

This commit is contained in:
jeffcheasey88 2023-07-26 11:57:33 +02:00
parent dd51789376
commit 0ba09c2338
2 changed files with 3 additions and 12 deletions

View file

@ -22,6 +22,8 @@ import org.jose4j.lang.JoseException;
public class Router{ public class Router{
public static void main(String[] args){}
private Map<RequestType, Map<Response, Route>> responses; private Map<RequestType, Map<Response, Route>> responses;
private Map<Response, Pattern> patterns; private Map<Response, Pattern> patterns;
private Response noFileFound; private Response noFileFound;

View file

@ -2,25 +2,14 @@ package be.jeffcheasey88.peeratcode.framework;
import org.jose4j.jwt.JwtClaims; import org.jose4j.jwt.JwtClaims;
import be.jeffcheasey88.peeratcode.framework.Locker.Key;
public class User{ public class User{
private int id; private int id;
private Key key;
public User(JwtClaims jwtClaims){ public User(JwtClaims jwtClaims){
this.id = ((Long) jwtClaims.getClaimValue("id")).intValue(); this.id = ((Long) jwtClaims.getClaimValue("id")).intValue();
} }
public void setKey(Key key){
this.key = key;
}
public Key getKey(){
return this.key;
}
public int getId(){ public int getId(){
return this.id; return this.id;
} }