Class JsonPathJwtAuthenticationDetails
- java.lang.Object
-
- org.bremersee.security.authentication.JsonPathJwtAuthenticationDetails
-
- All Implemented Interfaces:
AuthenticationDetails
public class JsonPathJwtAuthenticationDetails extends Object implements AuthenticationDetails
The json path jwt authentication details.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description JsonPathJwtAuthenticationDetails(Locale defaultLocale, TimeZone defaultTimeZone, String preferredLanguageJsonPath, String preferredTimeZoneJsonPath)Instantiates a new json path jwt authentication details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalegetDefaultLocale()Gets default locale.TimeZonegetDefaultTimeZone()Gets default time zone.Optional<Locale>getPreferredLanguage(org.springframework.security.core.Authentication authentication)Gets preferred language.Optional<TimeZone>getPreferredTimeZone(org.springframework.security.core.Authentication authentication)Gets preferred time zone.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bremersee.security.authentication.AuthenticationDetails
getPreferredLanguageNullSafe, getPreferredTimeZoneNullSafe
-
-
-
-
Constructor Detail
-
JsonPathJwtAuthenticationDetails
public JsonPathJwtAuthenticationDetails(Locale defaultLocale, TimeZone defaultTimeZone, String preferredLanguageJsonPath, String preferredTimeZoneJsonPath)
Instantiates a new json path jwt authentication details.- Parameters:
defaultLocale- the default localedefaultTimeZone- the default time zonepreferredLanguageJsonPath- the preferred language json pathpreferredTimeZoneJsonPath- the preferred time zone json path
-
-
Method Detail
-
getDefaultLocale
public Locale getDefaultLocale()
Description copied from interface:AuthenticationDetailsGets default locale.- Specified by:
getDefaultLocalein interfaceAuthenticationDetails- Returns:
- the default locale
-
getDefaultTimeZone
public TimeZone getDefaultTimeZone()
Description copied from interface:AuthenticationDetailsGets default time zone.- Specified by:
getDefaultTimeZonein interfaceAuthenticationDetails- Returns:
- the default time zone
-
getPreferredLanguage
public Optional<Locale> getPreferredLanguage(org.springframework.security.core.Authentication authentication)
Description copied from interface:AuthenticationDetailsGets preferred language.- Specified by:
getPreferredLanguagein interfaceAuthenticationDetails- Parameters:
authentication- the authentication- Returns:
- the preferred language
-
getPreferredTimeZone
public Optional<TimeZone> getPreferredTimeZone(org.springframework.security.core.Authentication authentication)
Description copied from interface:AuthenticationDetailsGets preferred time zone.- Specified by:
getPreferredTimeZonein interfaceAuthenticationDetails- Parameters:
authentication- the authentication- Returns:
- the preferred time zone
-
-