Package io.jmix.core.security.impl
Class CurrentAuthenticationImpl
java.lang.Object
io.jmix.core.security.impl.CurrentAuthenticationImpl
- All Implemented Interfaces:
- CurrentAuthentication
@Component("core_CurrentAuthentication")
public class CurrentAuthenticationImpl
extends Object
implements CurrentAuthentication
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.springframework.security.core.AuthenticationReturns current authentication object.protected Localeorg.springframework.security.core.userdetails.UserDetailsgetUser()Returns the authenticated user.booleanisSet()voidsetDeviceTimeZoneProvider(DeviceTimeZoneProvider deviceTimeZoneProvider) 
- 
Constructor Details- 
CurrentAuthenticationImplpublic CurrentAuthenticationImpl()
 
- 
- 
Method Details- 
setDeviceTimeZoneProvider@Autowired(required=false) public void setDeviceTimeZoneProvider(DeviceTimeZoneProvider deviceTimeZoneProvider) 
- 
getAuthenticationpublic org.springframework.security.core.Authentication getAuthentication()Description copied from interface:CurrentAuthenticationReturns current authentication object.- Specified by:
- getAuthenticationin interface- CurrentAuthentication
 
- 
getUserpublic org.springframework.security.core.userdetails.UserDetails getUser()Description copied from interface:CurrentAuthenticationReturns the authenticated user. If you need to get the user substitution information use theCurrentUserSubstitution.- Specified by:
- getUserin interface- CurrentAuthentication
- Returns:
- currently authenticated user
 
- 
getLocale- Specified by:
- getLocalein interface- CurrentAuthentication
- Returns:
- locale of the current authentication or default locale if current authentication doesn't contain locale information
 
- 
getTimeZone- Specified by:
- getTimeZonein interface- CurrentAuthentication
- Returns:
- time zone of the current authentication or default time zone if current authentication doesn't contain time zone information
 
- 
isSetpublic boolean isSet()- Specified by:
- isSetin interface- CurrentAuthentication
- Returns:
- true if authentication is set to SecurityContext
 
- 
getDefaultLocale
 
-