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 Locale
getDefaultLocale()
Gets default locale.TimeZone
getDefaultTimeZone()
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:AuthenticationDetails
Gets default locale.- Specified by:
getDefaultLocale
in interfaceAuthenticationDetails
- Returns:
- the default locale
-
getDefaultTimeZone
public TimeZone getDefaultTimeZone()
Description copied from interface:AuthenticationDetails
Gets default time zone.- Specified by:
getDefaultTimeZone
in interfaceAuthenticationDetails
- Returns:
- the default time zone
-
getPreferredLanguage
public Optional<Locale> getPreferredLanguage(org.springframework.security.core.Authentication authentication)
Description copied from interface:AuthenticationDetails
Gets preferred language.- Specified by:
getPreferredLanguage
in interfaceAuthenticationDetails
- Parameters:
authentication
- the authentication- Returns:
- the preferred language
-
getPreferredTimeZone
public Optional<TimeZone> getPreferredTimeZone(org.springframework.security.core.Authentication authentication)
Description copied from interface:AuthenticationDetails
Gets preferred time zone.- Specified by:
getPreferredTimeZone
in interfaceAuthenticationDetails
- Parameters:
authentication
- the authentication- Returns:
- the preferred time zone
-
-