Class DefaultRequestAudienceLookupFunction

All Implemented Interfaces:
Function<ProfileRequestContext,List<String>>, Component, DestructableComponent, InitializableComponent, ContextDataLookupFunction<ProfileRequestContext,List<String>>

@ThreadSafeAfterInit public class DefaultRequestAudienceLookupFunction extends AbstractAuthorizationRequestLookupFunction<List<String>>
A function that returns resource value of the authorization request. The resource value is expected to be prefixed with CUSTOM_RESOURCE_PARAM_PREFIX. The authorization request message decoder switches the incoming resource -parameter values to have that prefix. This function returns the value without the prefix.
Since:
4.2.0
  • Field Details

    • CUSTOM_RESOURCE_PARAM_PREFIX

      public static final String CUSTOM_RESOURCE_PARAM_PREFIX
      Custom prefix for the resource parameter values to allow non-uri values.
      See Also:
    • log

      @Nonnull private org.slf4j.Logger log
      Class logger.
  • Constructor Details

    • DefaultRequestAudienceLookupFunction

      public DefaultRequestAudienceLookupFunction()
  • Method Details

    • doLookup

      @Nullable protected List<String> doLookup(@Nonnull com.nimbusds.oauth2.sdk.AuthorizationRequest req, @Nullable com.nimbusds.oauth2.sdk.PushedAuthorizationRequest parRequest, @Nullable com.nimbusds.jwt.JWT requestObject, boolean isRequestObjectFromPar)
      Implemented to perform the actual lookup.
      Specified by:
      doLookup in class AbstractAuthorizationRequestLookupFunction<List<String>>
      Parameters:
      req - authorization request to perform the lookup from.
      parRequest - pushed authorization request if authorization request was pushed.
      requestObject - request object if it was part of the request.
      isRequestObjectFromPar - flag to indicate that the request object is built by the PAR endpoint.
      Returns:
      lookup value.