Class AccessTokenRequestReactiveFilter

java.lang.Object
io.quarkus.oidc.token.propagation.reactive.AccessTokenRequestReactiveFilter
All Implemented Interfaces:
jakarta.ws.rs.client.ClientRequestFilter, org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestFilter

@Priority(1000) public class AccessTokenRequestReactiveFilter extends Object implements org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestFilter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) io.quarkus.oidc.client.OidcClient
     
    (package private) String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    abortRequest(org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext requestContext)
     
    void
    filter(org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext requestContext)
     
    protected String
     
    protected io.quarkus.security.spi.runtime.MethodDescription
    This method is overridden by generated filter classes if the filter should only be applied on the REST client method.
    void
     
    protected boolean
     
    void
    propagateToken(org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext requestContext, String accessToken)
     
    protected boolean
    verifyTokenInstance(org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext requestContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestFilter

    filter
  • Field Details

    • exchangeTokenClient

      io.quarkus.oidc.client.OidcClient exchangeTokenClient
    • exchangeTokenProperty

      String exchangeTokenProperty
  • Constructor Details

    • AccessTokenRequestReactiveFilter

      public AccessTokenRequestReactiveFilter()
  • Method Details

    • initExchangeTokenClient

      @PostConstruct public void initExchangeTokenClient()
    • isExchangeToken

      protected boolean isExchangeToken()
    • filter

      public void filter(org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext requestContext)
      Specified by:
      filter in interface org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestFilter
    • getClientName

      protected String getClientName()
    • propagateToken

      public void propagateToken(org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext requestContext, String accessToken)
    • verifyTokenInstance

      protected boolean verifyTokenInstance(org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext requestContext)
    • abortRequest

      protected void abortRequest(org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext requestContext)
    • getMethodDescription

      protected io.quarkus.security.spi.runtime.MethodDescription getMethodDescription()
      This method is overridden by generated filter classes if the filter should only be applied on the REST client method.
      Returns:
      REST client method description for which this filter should be applied; or null if applies to all methods