Class DefaultRequestAudienceLookupFunction
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.oidc.op.messaging.context.navigate.AbstractAuthorizationRequestLookupFunction<List<String>>
net.shibboleth.idp.plugin.oidc.op.messaging.context.navigate.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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCustom prefix for the resource parameter values to allow non-uri values.private org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.messaging.context.navigate.AbstractAuthorizationRequestLookupFunction
apply, checkRequestObject, setUseOnlyRequestObjectPredicateMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
CUSTOM_RESOURCE_PARAM_PREFIX
Custom prefix for the resource parameter values to allow non-uri values.- See Also:
-
log
@Nonnull private org.slf4j.Logger logClass 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:
doLookupin classAbstractAuthorizationRequestLookupFunction<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.
-