Class DefaultRequestCodeChallengeMethodLookupFunction
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.oidc.op.messaging.context.navigate.AbstractAuthorizationRequestLookupFunction<String>
net.shibboleth.idp.plugin.oidc.op.messaging.context.navigate.DefaultRequestCodeChallengeMethodLookupFunction
- All Implemented Interfaces:
Function<ProfileRequestContext,,String> Component,DestructableComponent,InitializableComponent,ContextDataLookupFunction<ProfileRequestContext,String>
@ThreadSafeAfterInit
public class DefaultRequestCodeChallengeMethodLookupFunction
extends AbstractAuthorizationRequestLookupFunction<String>
A function that returns code challenge method value of the authorization request via a lookup function. This default
lookup locates code challenge method from OAuth authorization request if available. If information is not available,
null is returned. If there is code_challenge_method in request object it is used instead of code_challenge_method
parameter.
- Since:
- 4.2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoLookup(AuthorizationRequest req, PushedAuthorizationRequest parRequest, JWT requestObject, boolean isRequestObjectFromPar) Implemented to perform the actual lookup.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
-
log
@Nonnull private org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
DefaultRequestCodeChallengeMethodLookupFunction
public DefaultRequestCodeChallengeMethodLookupFunction()
-
-
Method Details
-
doLookup
@Nullable protected String doLookup(@Nonnull AuthorizationRequest req, @Nullable PushedAuthorizationRequest parRequest, @Nullable JWT requestObject, boolean isRequestObjectFromPar) Implemented to perform the actual lookup.- Specified by:
doLookupin classAbstractAuthorizationRequestLookupFunction<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.
-