Interface LocaleAndTimeZoneExtractor


public interface LocaleAndTimeZoneExtractor
Extracts a Locale and TimeZone from an Authentication and stores them in the Vaadin session after a successful authentication.

Alternatively UserDetails may also implement HasLocaleAndTimeZone instead.

  • Method Summary

    Modifier and Type
    Method
    Description
    getLocale(org.springframework.security.core.Authentication authentication)
    Returns the user's locale if available in the Authentication.
    getTimeZone(org.springframework.security.core.Authentication authentication)
    Returns the user's time zone if available in the Authentication.
  • Method Details

    • getLocale

      Optional<Locale> getLocale(org.springframework.security.core.Authentication authentication)
      Returns the user's locale if available in the Authentication.
      Parameters:
      authentication - the authentication to examine
      Returns:
      the user's locale if available
    • getTimeZone

      Optional<TimeZone> getTimeZone(org.springframework.security.core.Authentication authentication)
      Returns the user's time zone if available in the Authentication.
      Parameters:
      authentication - the authentication to examine
      Returns:
      the user's time zone if available