peer-at-code-backend/src/be/jeffcheasey88/peeratcode/framework/User.java
jeffcheasey88 901c6f1512 L
2023-04-26 16:48:14 +02:00

27 lines
No EOL
440 B
Java

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;
}
}