@Singleton public class AuthenticationArgumentBinder extends Object implements TypedRequestArgumentBinder<Authentication>
ArgumentBinder.BindingResult<T>
Constructor and Description |
---|
AuthenticationArgumentBinder() |
Modifier and Type | Method and Description |
---|---|
Argument<Authentication> |
argumentType() |
ArgumentBinder.BindingResult<Authentication> |
bind(ArgumentConversionContext<Authentication> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
public Argument<Authentication> argumentType()
argumentType
in interface TypeArgumentBinder<Authentication,HttpRequest<?>>
public ArgumentBinder.BindingResult<Authentication> bind(ArgumentConversionContext<Authentication> context, HttpRequest<?> source)
ArgumentBinder
bind
in interface ArgumentBinder<Authentication,HttpRequest<?>>
context
- The ArgumentConversionContext
source
- The sourceOptional
of the value. If no binding was possible Optional.empty()