@Singleton
public class PrincipalArgumentBinder
extends java.lang.Object
implements io.micronaut.http.bind.binders.TypedRequestArgumentBinder<java.security.Principal>
Principal
to a route argument.Constructor and Description |
---|
PrincipalArgumentBinder() |
Modifier and Type | Method and Description |
---|---|
io.micronaut.core.type.Argument<java.security.Principal> |
argumentType() |
io.micronaut.core.bind.ArgumentBinder.BindingResult<java.security.Principal> |
bind(io.micronaut.core.convert.ArgumentConversionContext<java.security.Principal> context,
io.micronaut.http.HttpRequest<?> source) |
public io.micronaut.core.type.Argument<java.security.Principal> argumentType()
argumentType
in interface io.micronaut.core.bind.TypeArgumentBinder<java.security.Principal,io.micronaut.http.HttpRequest<?>>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<java.security.Principal> bind(io.micronaut.core.convert.ArgumentConversionContext<java.security.Principal> context, io.micronaut.http.HttpRequest<?> source)
bind
in interface io.micronaut.core.bind.ArgumentBinder<java.security.Principal,io.micronaut.http.HttpRequest<?>>