Class AbstractPrincipalArgumentBinder<A extends Principal>

java.lang.Object
io.micronaut.security.authentication.AbstractPrincipalArgumentBinder<A>
Type Parameters:
A - the Principal type
All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinder<A,io.micronaut.http.HttpRequest<?>>, io.micronaut.core.bind.TypeArgumentBinder<A,io.micronaut.http.HttpRequest<?>>, io.micronaut.http.bind.binders.RequestArgumentBinder<A>, io.micronaut.http.bind.binders.TypedRequestArgumentBinder<A>
Direct Known Subclasses:
AuthenticationArgumentBinder, PrincipalArgumentBinder, X509AuthenticationArgumentBinder

public abstract class AbstractPrincipalArgumentBinder<A extends Principal> extends Object implements io.micronaut.http.bind.binders.TypedRequestArgumentBinder<A>
Binds the authentication object to a route argument.
Since:
3.2
Author:
Burt Beckwith
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder

    io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractPrincipalArgumentBinder(Class<A> authenticationClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.type.Argument<A>
     
    io.micronaut.core.bind.ArgumentBinder.BindingResult<A>
    bind(io.micronaut.core.convert.ArgumentConversionContext<A> context, io.micronaut.http.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

    • AbstractPrincipalArgumentBinder

      protected AbstractPrincipalArgumentBinder(Class<A> authenticationClass)
  • Method Details

    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<A> bind(io.micronaut.core.convert.ArgumentConversionContext<A> context, io.micronaut.http.HttpRequest<?> source)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<A extends Principal,io.micronaut.http.HttpRequest<?>>
    • argumentType

      public io.micronaut.core.type.Argument<A> argumentType()
      Specified by:
      argumentType in interface io.micronaut.core.bind.TypeArgumentBinder<A extends Principal,io.micronaut.http.HttpRequest<?>>