@Component(value="core_UserArgumentResolver") public class UserArgumentResolver extends TypedArgumentResolver<org.springframework.security.core.userdetails.UserDetails>
UserDetails
as method argument.Modifier and Type | Field and Description |
---|---|
protected CurrentAuthentication |
currentAuthentication |
paramClass
Constructor and Description |
---|
UserArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.userdetails.UserDetails |
resolveArgument(org.springframework.core.MethodParameter parameter)
Resolves a method parameter into an argument value.
|
supportsParameter
@Autowired protected CurrentAuthentication currentAuthentication
public org.springframework.security.core.userdetails.UserDetails resolveArgument(org.springframework.core.MethodParameter parameter)
MethodArgumentResolver
resolveArgument
in interface MethodArgumentResolver
resolveArgument
in class TypedArgumentResolver<org.springframework.security.core.userdetails.UserDetails>
parameter
- the method parameter to resolve. This parameter must
have previously been passed to MethodArgumentResolver.supportsParameter(org.springframework.core.MethodParameter)
which must
have returned true
.null
if not resolvable