Class SpringSecurityExpressionObjectFactory

  • All Implemented Interfaces:
    org.thymeleaf.expression.IExpressionObjectFactory

    public class SpringSecurityExpressionObjectFactory
    extends Object
    implements org.thymeleaf.expression.IExpressionObjectFactory

    Builds the expression objects to be used by the Spring Security dialect.

    Since:
    3.0.0
    Author:
    Daniel Fernández
    • Field Detail

      • AUTHENTICATION_EXPRESSION_OBJECT_NAME

        public static final String AUTHENTICATION_EXPRESSION_OBJECT_NAME
        See Also:
        Constant Field Values
      • AUTHORIZATION_EXPRESSION_OBJECT_NAME

        public static final String AUTHORIZATION_EXPRESSION_OBJECT_NAME
        See Also:
        Constant Field Values
      • ALL_EXPRESSION_OBJECT_NAMES

        protected static final java.util.Set<String> ALL_EXPRESSION_OBJECT_NAMES
    • Constructor Detail

      • SpringSecurityExpressionObjectFactory

        public SpringSecurityExpressionObjectFactory()
    • Method Detail

      • getAllExpressionObjectNames

        public java.util.Set<String> getAllExpressionObjectNames()
        Specified by:
        getAllExpressionObjectNames in interface org.thymeleaf.expression.IExpressionObjectFactory
      • isCacheable

        public boolean isCacheable​(String expressionObjectName)
        Specified by:
        isCacheable in interface org.thymeleaf.expression.IExpressionObjectFactory
      • buildObject

        public Object buildObject​(org.thymeleaf.context.IExpressionContext context,
                                  String expressionObjectName)
        Specified by:
        buildObject in interface org.thymeleaf.expression.IExpressionObjectFactory