Class AuthUtils
Object
org.thymeleaf.extras.springsecurity6.auth.AuthUtils
- Author:
- Daniel Fernández
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
authorizeUsingAccessExpression
(org.thymeleaf.context.IExpressionContext context, String accessExpression, org.springframework.security.core.Authentication authentication) static boolean
authorizeUsingUrlCheck
(org.thymeleaf.context.IExpressionContext context, String url, String method, org.springframework.security.core.Authentication authentication) static org.springframework.security.core.Authentication
getAuthenticationObject
(org.thymeleaf.context.IExpressionContext context) static Object
getAuthenticationProperty
(org.springframework.security.core.Authentication authentication, String property) static org.springframework.context.ApplicationContext
getContext
(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)
-