Package io.jmix.core.security
Interface AuthenticationLocaleResolver
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
UiAnonymousAuthenticationLocaleResolver
public interface AuthenticationLocaleResolver
extends org.springframework.core.Ordered
A resolver that provides
Locale
if current authentication does not contain it.- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Method Details
-
supports
boolean supports(org.springframework.security.core.Authentication authentication) - Parameters:
authentication
- authentication to check- Returns:
true
if resolver supports given authentication
-
getLocale
- Parameters:
authentication
- authentication- Returns:
- locale that should be used, or
null
-