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