Interface AuthenticationDetails

  • All Known Implementing Classes:
    JsonPathJwtAuthenticationDetails

    @Validated
    public interface AuthenticationDetails
    The authentication details interface.
    Author:
    Christian Bremer
    • 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