Class SimpleSecurityContextBinder
java.lang.Object
io.micronaut.jaxrs.runtime.ext.bind.SimpleSecurityContextBinder
- All Implemented Interfaces:
ArgumentBinder<SecurityContext,
,HttpRequest<?>> TypeArgumentBinder<SecurityContext,
,HttpRequest<?>> RequestArgumentBinder<SecurityContext>
,TypedRequestArgumentBinder<SecurityContext>
- Direct Known Subclasses:
MicronautSecurityContextBinder
@Singleton
public class SimpleSecurityContextBinder
extends Object
implements TypedRequestArgumentBinder<SecurityContext>
A simple implementation the binds the JAX-RS
SecurityContext
without
support for roles.- Since:
- 3.1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
ArgumentBinder.BindingResult<T extends Object>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(ArgumentConversionContext<SecurityContext> context, HttpRequest<?> source) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.bind.binders.TypedRequestArgumentBinder
matches, superTypes
-
Constructor Details
-
SimpleSecurityContextBinder
public SimpleSecurityContextBinder()
-
-
Method Details
-
bind
public ArgumentBinder.BindingResult<SecurityContext> bind(ArgumentConversionContext<SecurityContext> context, HttpRequest<?> source) - Specified by:
bind
in interfaceArgumentBinder<SecurityContext,
HttpRequest<?>>
-
argumentType
- Specified by:
argumentType
in interfaceTypeArgumentBinder<SecurityContext,
HttpRequest<?>>
-