Class AuthenticationRequestClaimsAuditExtractor

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

public class AuthenticationRequestClaimsAuditExtractor extends AbstractAuthenticationRequestLookupFunction<String> implements Function<ProfileRequestContext,String>
A function that resolves a claim value from the authentication request. If request object was involved and contains a value for the claim, it will be returned. Otherwise it's fetched from the authentication request parameters.
  • Field Details

    • log

      @Nonnull private org.slf4j.Logger log
      Class logger.
    • key

      @Nonnull @NotEmpty private final String key
      The claim whose value is to be extracted.
  • Constructor Details

    • AuthenticationRequestClaimsAuditExtractor

      public AuthenticationRequestClaimsAuditExtractor(@Nonnull @NotEmpty String claim)
      Constructor.
      Parameters:
      claim - The claim whose value is to be resolved from the id_token claims set.
  • Method Details

    • doLookup

      @Nullable protected String doLookup(@Nonnull com.nimbusds.openid.connect.sdk.AuthenticationRequest request, @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 AbstractAuthenticationRequestLookupFunction<String>
      Parameters:
      request - 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.