public LoginConfigDecorator(LoginConfiguration decoree){ this.decoree = decoree; String errorPage = RequestUtil.urlDecode(decoree.getFormErrorPage()); if (!errorPage.startsWith("/")){ errorPage = "/" + errorPage; } setErrorPage(errorPage); String loginPage = RequestUtil.urlDecode(decoree.getFormLoginPage()); if (!loginPage.startsWith("/")){ loginPage = "/" + loginPage; } setLoginPage(loginPage); setAuthMethod(decoree.getAuthenticationMethod()); setRealmName(decoree.getRealmName()); }
_realmName = app.getRealm(); if (_realmName == null && loginConfig != null) { _realmName = loginConfig.getRealmName();
if (lc != null) { LoginConfiguration loginConf = new LoginConfigurationImpl(); loginConf.setAuthenticationMethod(lc.getAuthMethod().name()); loginConf.setRealmName(lc.getRealmName()); loginConf.setFormErrorPage(form.getFormErrorPage()); loginConf.setFormLoginPage(form.getFormLoginPage());
if (loginConfig != null && LoginConfiguration.CLIENT_CERTIFICATION_AUTHENTICATION.equals( loginConfig.getAuthenticationMethod())) { this.realmName = CertificateRealm.AUTH_TYPE; } else {
LoginConfiguration lgConf = wbd.getLoginConfiguration(); if (lgConf != null){ String realmName = lgConf.getRealmName(); SunWebApp sunDes = wbd.getSunDescriptor(); if(sunDes != null){
if (loginConfig != null && LoginConfiguration.CLIENT_CERTIFICATION_AUTHENTICATION.equals( loginConfig.getAuthenticationMethod())) { this.realmName = CertificateRealm.AUTH_TYPE; } else {
if (lconf != null) { logger.finest(" Login config: realm="+ lconf.getRealmName() + ", method="+ lconf.getAuthenticationMethod() + ", form="+ lconf.getFormLoginPage() + ", error="+ lconf.getFormErrorPage());
LoginConfiguration lgConf = wbd.getLoginConfiguration(); if (lgConf != null){ String realmName = lgConf.getRealmName(); SunWebApp sunDes = wbd.getSunDescriptor(); if(sunDes != null){
private void handleCNonceCacheBSInit(String appName, Set<WebBundleDescriptor> webDesc, boolean isHA) { boolean hasDigest = false; for (WebBundleDescriptor webBD : webDesc) { LoginConfiguration lc = webBD.getLoginConfiguration(); if (lc != null && LoginConfiguration.DIGEST_AUTHENTICATION.equals( lc.getAuthenticationMethod())) { hasDigest = true; break; } } if (!hasDigest) { return; } // initialize the backing stores as well for cnonce cache. if (isHaEnabled() && isHA) { final String clusterName = haUtil.getClusterName(); final String instanceName = haUtil.getInstanceName(); if (cnonceCacheFactory != null) { CNonceCache cache = cnonceCacheFactory.createCNonceCache( appName, clusterName, instanceName, HA_CNONCE_BS_NAME); this.appCnonceMap.put(appName, cache); } } } }
if (lconf != null) { logger.finest(" Login config: realm="+ lconf.getRealmName() + ", method="+ lconf.getAuthenticationMethod() + ", form="+ lconf.getFormLoginPage() + ", error="+ lconf.getFormErrorPage());