Added project

This commit is contained in:
2023-06-11 00:23:46 +03:00
parent 7a8ca16c1f
commit 366ce44813
36 changed files with 2274 additions and 23 deletions

View File

@@ -0,0 +1,20 @@
package ru.resprojects.restsrv.token;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class TokenResourceDetails {
private String token;
private String user;
public String getUserByToken(String token) {
if (!this.token.equals(token)) {
return null;
}
return user;
}
}