package cn.ibizlab.pms.util.security;

import org.springframework.security.core.userdetails.UserDetails;

import java.util.Date;

public interface AuthTokenUtil {

    String generateToken(UserDetails userDetails);

    Boolean validateToken(String token, UserDetails userDetails);

    String getUsernameFromToken(String token);
    
    Date getExpirationDateFromToken(String token) ;

}

