1 19 20 package com.sslexplorer.core.tags; 21 22 import javax.servlet.jsp.tagext.TagSupport ; 23 24 import org.apache.commons.logging.Log; 25 import org.apache.commons.logging.LogFactory; 26 27 import com.sslexplorer.core.CoreUtil; 28 29 35 public class AuthenticationModuleInUseTag extends TagSupport { 36 37 final static Log log = LogFactory.getLog(AuthenticationModuleInUseTag.class); 38 39 String name; 41 42 45 public int doStartTag() { 46 try { 47 if(CoreUtil.isAuthenticationModuleInUse(name)) { 48 return EVAL_BODY_INCLUDE; 49 } 50 } catch (Exception e) { 51 log.error("Failed to get authentication schemes.", e); 52 } 53 return SKIP_BODY; 54 } 55 56 62 public void setName(String name) { 63 this.name = name; 64 } 65 66 } | Popular Tags |