Remove keys from users
This commit is contained in:
parent
dd51789376
commit
0ba09c2338
2 changed files with 3 additions and 12 deletions
|
@ -22,6 +22,8 @@ import org.jose4j.lang.JoseException;
|
|||
|
||||
public class Router{
|
||||
|
||||
public static void main(String[] args){}
|
||||
|
||||
private Map<RequestType, Map<Response, Route>> responses;
|
||||
private Map<Response, Pattern> patterns;
|
||||
private Response noFileFound;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue