package com.connor.sso.sso.util;


import com.connor.sso.sso.clientx.AppXSession;
import org.springframework.stereotype.Service;


public class LoginUtil {

    private final String server;
    private final String user;
    private final String password;

    public LoginUtil(String server, String user, String password) {
        this.server = server;
        this.user = user;
        this.password = password;
    }

    public AppXSession loginTC() throws Exception {
        AppXSession session = null;
        session = KUtil.login(server, user, password);
        return session;
    }
//    public AppXSession loginTC(String url,String name,String pass) throws Exception {
//        AppXSession session = null;
//        session = KUtil.login(url, name, pass);
//        return session;
//    }
}
