class SimpleTokenManager implements TokenManager {

    @Override
    public Cookie createSecureTokenCookie(SignedJWT token) {
        Cookie cookie = new Cookie(TOKEN_NAME, token.serialize());
        cookie.setSecure(true);
        cookie.setPath("/");
        cookie.setMaxAge((int) (tokenDuration / 1000));

        return cookie;
    }

}