public interface CurrentAuthentication
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.Authentication |
getAuthentication()
Returns current authentication object.
|
java.util.Locale |
getLocale() |
java.util.TimeZone |
getTimeZone() |
org.springframework.security.core.userdetails.UserDetails |
getUser()
Returns the authenticated user.
|
boolean |
isSet() |
org.springframework.security.core.Authentication getAuthentication()
java.lang.IllegalStateException
- if Authentication is not set to SecurityContext
org.springframework.security.core.userdetails.UserDetails getUser()
CurrentUserSubstitution
.java.lang.RuntimeException
- if Authentication is not set to SecurityContext
or user information cannot be extracted from current authenticationjava.util.Locale getLocale()
java.lang.RuntimeException
- if Authentication is not set to SecurityContext
java.util.TimeZone getTimeZone()
java.lang.RuntimeException
- if Authentication is not set to SecurityContext
boolean isSet()
SecurityContext