diff --git a/src/main/java/com/eactive/ext/kjb/sso/KjbSsoModule.java b/src/main/java/com/eactive/ext/kjb/sso/KjbSsoModule.java index 1efc4fc..8bf6e46 100644 --- a/src/main/java/com/eactive/ext/kjb/sso/KjbSsoModule.java +++ b/src/main/java/com/eactive/ext/kjb/sso/KjbSsoModule.java @@ -39,9 +39,9 @@ public class KjbSsoModule { private final String NLS_ERROR_URL; /***[SSO ND LIST 운영]**]***********************************************************************/ - private final static String ND_URL1 = "http://sso.kjbank.com:5480"; - private final static Vector PROVIDER_LIST = new Vector(); - private final static int COOKIE_SESSTION_TIME_OUT = 3000000; + private final String ND_URL1; + private final Vector PROVIDER_LIST = new Vector(); + private final int COOKIE_SESSTION_TIME_OUT = 3000000; // 인증 타입 (ID/PW 방식 : 1, 인증서 : 3) private final String TOA = "1"; @@ -62,8 +62,6 @@ public class KjbSsoModule { private KjbSsoModule(KjbProperty kjbProperty) { this.prop = kjbProperty; - context = new NXContext(Collections.singletonList(ND_URL1), timeout); - ascpUrl = prop.getUrl() + prop.getSsoAscpUri(); NLS_URL = "http://" + prop.getSsoDomain(); @@ -72,11 +70,14 @@ public class KjbSsoModule { NLS_LOGOUT_URL = NLS_URL + ":" + NLS_PORT + "/nls3/NCLogout.jsp"; NLS_ERROR_URL = NLS_URL + ":" + NLS_PORT + "/nls3/error.jsp"; + ND_URL1 = "http://" + prop.getSsoDomain() + ":5480"; + PROVIDER_DOMAIN = prop.getSsoDomain(); this.providerList = new Vector<>(); providerList.add(PROVIDER_DOMAIN); + context = new NXContext(Collections.singletonList(ND_URL1), timeout); CookieManager.setEncStatus(true); SECode.setCookiePadding(COOKIE_PADDING);