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 TypeMethodDescriptiongetLocale(org.springframework.security.core.Authentication authentication) Returns the user's locale if available in theAuthentication.getTimeZone(org.springframework.security.core.Authentication authentication) Returns the user's time zone if available in theAuthentication.
-
Method Details
-
getLocale
Returns the user's locale if available in theAuthentication.- Parameters:
authentication- the authentication to examine- Returns:
- the user's locale if available
-
getTimeZone
Returns the user's time zone if available in theAuthentication.- Parameters:
authentication- the authentication to examine- Returns:
- the user's time zone if available
-