Interface AuthenticationDetails
-
- All Known Implementing Classes:
JsonPathJwtAuthenticationDetails
@Validated public interface AuthenticationDetails
The authentication details interface.- Author:
- Christian Bremer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull Locale
getDefaultLocale()
Gets default locale.default @NotNull TimeZone
getDefaultTimeZone()
Gets default time zone.Optional<Locale>
getPreferredLanguage(org.springframework.security.core.Authentication authentication)
Gets preferred language.default @NotNull Locale
getPreferredLanguageNullSafe(org.springframework.security.core.Authentication authentication)
Gets preferred language null safe.Optional<TimeZone>
getPreferredTimeZone(org.springframework.security.core.Authentication authentication)
Gets preferred time zone.default @NotNull TimeZone
getPreferredTimeZoneNullSafe(org.springframework.security.core.Authentication authentication)
Gets preferred time zone null safe.
-
-
-
Method Detail
-
getDefaultLocale
@NotNull default @NotNull Locale getDefaultLocale()
Gets default locale.- Returns:
- the default locale
-
getDefaultTimeZone
@NotNull default @NotNull TimeZone getDefaultTimeZone()
Gets default time zone.- Returns:
- the default time zone
-
getPreferredLanguage
Optional<Locale> getPreferredLanguage(@Nullable org.springframework.security.core.Authentication authentication)
Gets preferred language.- Parameters:
authentication
- the authentication- Returns:
- the preferred language
-
getPreferredLanguageNullSafe
@NotNull default @NotNull Locale getPreferredLanguageNullSafe(@Nullable org.springframework.security.core.Authentication authentication)
Gets preferred language null safe.- Parameters:
authentication
- the authentication- Returns:
- the preferred language null safe
-
getPreferredTimeZone
Optional<TimeZone> getPreferredTimeZone(@Nullable org.springframework.security.core.Authentication authentication)
Gets preferred time zone.- Parameters:
authentication
- the authentication- Returns:
- the preferred time zone
-
getPreferredTimeZoneNullSafe
@NotNull default @NotNull TimeZone getPreferredTimeZoneNullSafe(@Nullable org.springframework.security.core.Authentication authentication)
Gets preferred time zone null safe.- Parameters:
authentication
- the authentication- Returns:
- the preferred time zone null safe
-
-