Class AddAuthorizationCodeHashToIDToken
- java.lang.Object
-
- net.shibboleth.utilities.java.support.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.profile.impl.AbstractOIDCSigningResponseAction
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.AddAuthorizationCodeHashToIDToken
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class AddAuthorizationCodeHashToIDToken extends AbstractOIDCSigningResponseAction
Action that adds authorization code hash claim to aIDTokenClaimsSet. Configurable calculation strategy function is used for producing the hash.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,String>codeHashCalculationStrategyThe strategy used for calculating the authorization code hash value.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description AddAuthorizationCodeHashToIDToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()voidsetCodeHashCalculationStrategy(Function<ProfileRequestContext,String> strategy)Set the strategy used for calculating the authorization code hash value.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCSigningResponseAction
doPreExecute, getSignatureSigningParameters, setSecurityParametersLookupStrategy
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCResponseAction
getMetadataContext, getOidcResponseContext
-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, 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 org.slf4j.Logger log
Class logger.
-
codeHashCalculationStrategy
@NonnullAfterInit private Function<ProfileRequestContext,String> codeHashCalculationStrategy
The strategy used for calculating the authorization code hash value.
-
-
Method Detail
-
setCodeHashCalculationStrategy
public void setCodeHashCalculationStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used for calculating the authorization code hash value.- Parameters:
strategy- calculation strategy
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-