Class AddUserInfoShell
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCResponseAction
net.shibboleth.idp.plugin.oidc.op.userinfo.profile.impl.AddUserInfoShell
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Action that creates a
UserInfo object shell, and sets it to work context
OIDCAuthenticationResponseContext located under InOutOperationContext.getOutboundMessageContext().
By default sub claim is added. If the response is to be signed, also iss and aud claims are added.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringOP ID to populate into Issuer element.private Function<ProfileRequestContext,String> Strategy used to obtain the response issuer value.private org.slf4j.LoggerClass logger.Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.private RelyingPartyContextThe RelyingPartyContext to operate on.private Function<ProfileRequestContext,com.nimbusds.jose.JWSAlgorithm> Strategy used to determine user info response signing algorithm. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the strategy used to locate the issuer value to use.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.voidsetUserInfoSigningAlgLookupStrategy(Function<ProfileRequestContext, com.nimbusds.jose.JWSAlgorithm> strategy) Set the strategy used to user info signing algorithm lookup strategy.Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCResponseAction
getMetadataContext, getOidcResponseContextMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
issuerLookupStrategy
Strategy used to obtain the response issuer value. -
issuerId
OP ID to populate into Issuer element. -
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext. -
rpCtx
The RelyingPartyContext to operate on. -
userInfoSigAlgStrategy
@Nonnull private Function<ProfileRequestContext,com.nimbusds.jose.JWSAlgorithm> userInfoSigAlgStrategyStrategy used to determine user info response signing algorithm.
-
-
Constructor Details
-
AddUserInfoShell
public AddUserInfoShell()Constructor.
-
-
Method Details
-
setUserInfoSigningAlgLookupStrategy
public void setUserInfoSigningAlgLookupStrategy(@Nonnull Function<ProfileRequestContext, com.nimbusds.jose.JWSAlgorithm> strategy) Set the strategy used to user info signing algorithm lookup strategy.- Parameters:
strategy- lookup strategy
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext
-
setIssuerLookupStrategy
Set the strategy used to locate the issuer value to use.- Parameters:
strategy- lookup strategy
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractOIDCResponseAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-