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 Details
-
CurrentAuthenticationImpl
public CurrentAuthenticationImpl()
-
-
Method Details
-
getAuthentication
public org.springframework.security.core.Authentication getAuthentication()Description copied from interface:CurrentAuthenticationReturns current authentication object.- Specified by:
getAuthenticationin interfaceCurrentAuthentication
-
getUser
public 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 interfaceCurrentAuthentication- Returns:
- currently authenticated user
-
getLocale
- Specified by:
getLocalein interfaceCurrentAuthentication- Returns:
- locale of the current authentication or default locale if current authentication doesn't contain locale information
-
getTimeZone
- Specified by:
getTimeZonein interfaceCurrentAuthentication- Returns:
- time zone of the current authentication or default time zone if current authentication doesn't contain time zone information
-
isSet
public boolean isSet()- Specified by:
isSetin interfaceCurrentAuthentication- Returns:
- true if authentication is set to
SecurityContext
-