Interface AuthenticationLocaleResolver

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
AnonymousAuthenticationLocaleResolver, FlowUiAnonymousAuthenticationLocaleResolver, RememberMeAuthenticationLocaleResolver

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

    Modifier and Type
    Method
    Description
    getLocale(org.springframework.security.core.Authentication authentication)
     
    boolean
    supports(org.springframework.security.core.Authentication authentication)
     

    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

      @Nullable Locale getLocale(org.springframework.security.core.Authentication authentication)
      Parameters:
      authentication - authentication
      Returns:
      locale that should be used, or null