Class GenerateClientSecret
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.GenerateClientSecret
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,org.springframework.beans.factory.Aware,org.springframework.context.MessageSource,org.springframework.context.MessageSourceAware,org.springframework.webflow.execution.Action
Creates a new client secret with the
IdentifierGenerationStrategy attached to this action. The
client secret is included to the OIDCClientRegistrationResponseContext together with its validity period,
if defined.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IdentifierGenerationStrategyThe client secret generator to use.Strategy used to locate theIdentifierGenerationStrategyto use.private final org.slf4j.LoggerClass logger.Strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext.The OIDCClientRegistrationResponseContext to create the client secret to.private Function<ProfileRequestContext,Duration> Strategy to obtain client secret validity period policy.private booleanThe xmlSafe-flag passed to the identifier generator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidsetIdentifierGeneratorLookupStrategy(Function<ProfileRequestContext, IdentifierGenerationStrategy> strategy) Set the strategy used to locate theIdentifierGenerationStrategyto use.voidsetOidcResponseContextLookupStrategy(Function<MessageContext, OIDCClientRegistrationResponseContext> strategy) Set the strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext.voidSet strategy to obtain client secret expiration period policy.voidsetXmlSafeIdentifier(boolean flag) Set the xmlSafe-flag passed to the identifier generatorMethods 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, doInitialize, 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 final org.slf4j.Logger logClass logger. -
oidcResponseContextLookupStrategy
@Nonnull private Function<MessageContext,OIDCClientRegistrationResponseContext> oidcResponseContextLookupStrategyStrategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext. -
idGenerator
The client secret generator to use. -
idGeneratorLookupStrategy
@Nonnull private Function<ProfileRequestContext,IdentifierGenerationStrategy> idGeneratorLookupStrategyStrategy used to locate theIdentifierGenerationStrategyto use. -
oidcResponseCtx
The OIDCClientRegistrationResponseContext to create the client secret to. -
secretExpirationPeriodStrategy
Strategy to obtain client secret validity period policy. -
xmlSafeIdentifier
private boolean xmlSafeIdentifierThe xmlSafe-flag passed to the identifier generator.
-
-
Constructor Details
-
GenerateClientSecret
public GenerateClientSecret()Constructor.
-
-
Method Details
-
setSecretExpirationPeriodStrategy
public void setSecretExpirationPeriodStrategy(@Nullable Function<ProfileRequestContext, Duration> strategy) Set strategy to obtain client secret expiration period policy.- Parameters:
strategy- What to set.
-
setOidcResponseContextLookupStrategy
public void setOidcResponseContextLookupStrategy(@Nonnull Function<MessageContext, OIDCClientRegistrationResponseContext> strategy) Set the strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext.- Parameters:
strategy- What to set.
-
setIdentifierGeneratorLookupStrategy
public void setIdentifierGeneratorLookupStrategy(@Nonnull Function<ProfileRequestContext, IdentifierGenerationStrategy> strategy) Set the strategy used to locate theIdentifierGenerationStrategyto use.- Parameters:
strategy- What to set.
-
setXmlSafeIdentifier
public void setXmlSafeIdentifier(boolean flag) Set the xmlSafe-flag passed to the identifier generator- Parameters:
flag- xmlSafe-flag
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-