Class AuthUtils
Object
org.thymeleaf.extras.springsecurity6.auth.AuthUtils
- Author:
- Daniel Fernández
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanauthorizeUsingAccessExpression(org.thymeleaf.context.IExpressionContext context, String accessExpression, org.springframework.security.core.Authentication authentication) static booleanauthorizeUsingUrlCheck(org.thymeleaf.context.IExpressionContext context, String url, String method, org.springframework.security.core.Authentication authentication) static org.springframework.security.core.AuthenticationgetAuthenticationObject(org.thymeleaf.context.IExpressionContext context) static ObjectgetAuthenticationProperty(org.springframework.security.core.Authentication authentication, String property) static org.springframework.context.ApplicationContextgetContext(org.thymeleaf.context.IContext context)
-
Method Details
-
getAuthenticationObject
public static org.springframework.security.core.Authentication getAuthenticationObject(org.thymeleaf.context.IExpressionContext context) -
getAuthenticationProperty
-
authorizeUsingAccessExpression
public static boolean authorizeUsingAccessExpression(org.thymeleaf.context.IExpressionContext context, String accessExpression, org.springframework.security.core.Authentication authentication) -
authorizeUsingUrlCheck
-
getContext
public static org.springframework.context.ApplicationContext getContext(org.thymeleaf.context.IContext context)
-