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