public boolean isSecurityEnabled(HttpServletRequest request){
  Boolean isSecurityEnabled=true;
  String enableSecuritySpelExpression=configurationHelper.getProperty(ConfigurationValue.SECURITY_ENABLED_SPEL_EXPRESSION);
  if (StringUtils.isNotBlank(enableSecuritySpelExpression)) {
    Map<String,Object> variables=new HashMap<>();
    variables.put("request",request);
    isSecurityEnabled=spelExpressionHelper.evaluate(enableSecuritySpelExpression,Boolean.class,variables);
  }
  return isSecurityEnabled;
}

public boolean isSecurityEnabled ( HttpServletRequest request ) { Boolean isSecurityEnabled = true ; String enableSecuritySpelExpression = configurationHelper . getProperty ( ConfigurationValue . SECURITY_ENABLED_SPEL_EXPRESSION ) ; if ( StringUtils . isNotBlank ( enableSecuritySpelExpression ) ) { Map < String , Object > variables = new HashMap < > ( ) ; variables . put ( "request" , request ) ; isSecurityEnabled = spelExpressionHelper . evaluate ( enableSecuritySpelExpression , Boolean . class , variables ) ; } return isSecurityEnabled ; }
checks whether security is enabled based on spel expression defined in environment .
