Class AddRequestedClaimsHandler
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AbstractOIDCAuthenticationRequestActionMessageHandler
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddRequestedClaimsHandler
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public class AddRequestedClaimsHandler extends AbstractOIDCAuthenticationRequestActionMessageHandler
A message handler that adds requested claims to the under constructions authentication request.The claims are added from a customizable strategy/hook. No additional claims are provided by default.
Also records in the request whether the upstream OP supports the claims parameter, for later inspection by downstream components that only access to the request e.g. an encoder.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.OIDCClaimsRequest>requestedClaimsHookA hook that creates requested claims JSON Object from the profile request object.
-
Constructor Summary
Constructors Constructor Description AddRequestedClaimsHandler()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInvoke(MessageContext messageContext)voidsetRequestedClaimsHook(Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.OIDCClaimsRequest> hook)Set the hook that generates a requested claims JSON Object from the given profile request object.-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AbstractOIDCAuthenticationRequestActionMessageHandler
adapt, adapt, doPreInvoke, getAuthenticationRequest, getHttpServletRequest, getHttpServletRequestSupplier, getProfileConfiguration, getProviderMetadata, lookupProfileRequestContext, setHttpServletRequestSupplier, setProviderMetadataLookupStrategy, setRelyingPartyContextLookupStrategy
-
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
requestedClaimsHook
@Nonnull private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.OIDCClaimsRequest> requestedClaimsHook
A hook that creates requested claims JSON Object from the profile request object.
-
-
Method Detail
-
setRequestedClaimsHook
public void setRequestedClaimsHook(@Nullable Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.OIDCClaimsRequest> hook)Set the hook that generates a requested claims JSON Object from the given profile request object.- Parameters:
hook- the hook
-
doInvoke
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-