mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-24 02:09:35 +08:00
16 lines
444 B
Java
16 lines
444 B
Java
package xyz.playedu.api.service;
|
|
|
|
import xyz.playedu.api.exception.JwtLogoutException;
|
|
import xyz.playedu.api.types.JWTPayload;
|
|
import xyz.playedu.api.types.JwtToken;
|
|
|
|
public interface JWTService {
|
|
JwtToken generate(Integer userId, String iss, String prv);
|
|
|
|
boolean isInBlack(String jti);
|
|
|
|
void logout(String token, String prv) throws JwtLogoutException;
|
|
|
|
JWTPayload parse(String token, String prv) throws JwtLogoutException;
|
|
}
|