Class GenerateClientID
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.GenerateClientID
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Creates the client ID for the registration.
If an access token was used, it may contain the client_id to use. Otherwise uses
the IdentifierGenerationStrategy attached to the profile configuration. The
client ID is included to the OIDCClientRegistrationResponseContext.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IdentifierGenerationStrategyThe client ID generator to use.Strategy used to locate theIdentifierGenerationStrategyto use.private final org.slf4j.LoggerClass logger.Strategy used to locate theOIDCClientRegistrationResponseContextassociated with a given request.The OIDCClientRegistrationResponseContext to create the client ID to.Strategy used to locate theOIDCClientRegistrationTokenClaimsContextassociated with the request.The OIDCClientRegistrationTokenClaimsContext from which to optionally obtain client ID.Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.private RelyingPartyContextThe RelyingPartyContext to operate on.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<ProfileRequestContext, OIDCClientRegistrationResponseContext> strategy) Set the strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext.voidsetRegistrationTokenContextLookupStrategy(Function<ProfileRequestContext, OIDCClientRegistrationTokenClaimsContext> strategy) Set the strategy used to locate theOIDCClientRegistrationTokenClaimsContextassociated with a given request.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.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. -
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext. -
oidcResponseContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCClientRegistrationResponseContext> oidcResponseContextLookupStrategyStrategy used to locate theOIDCClientRegistrationResponseContextassociated with a given request. -
registrationTokenContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCClientRegistrationTokenClaimsContext> registrationTokenContextLookupStrategyStrategy used to locate theOIDCClientRegistrationTokenClaimsContextassociated with the request. -
idGeneratorLookupStrategy
@Nonnull private Function<ProfileRequestContext,IdentifierGenerationStrategy> idGeneratorLookupStrategyStrategy used to locate theIdentifierGenerationStrategyto use. -
rpCtx
The RelyingPartyContext to operate on. -
oidcResponseCtx
The OIDCClientRegistrationResponseContext to create the client ID to. -
registrationTokenCtx
The OIDCClientRegistrationTokenClaimsContext from which to optionally obtain client ID. -
idGenerator
The client ID generator to use. -
xmlSafeIdentifier
private boolean xmlSafeIdentifierThe xmlSafe-flag passed to the identifier generator.
-
-
Constructor Details
-
GenerateClientID
public GenerateClientID()Constructor.
-
-
Method Details
-
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
-
setOidcResponseContextLookupStrategy
public void setOidcResponseContextLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCClientRegistrationResponseContext> strategy) Set the strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext.- Parameters:
strategy- strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext
-
setRegistrationTokenContextLookupStrategy
public void setRegistrationTokenContextLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCClientRegistrationTokenClaimsContext> strategy) Set the strategy used to locate theOIDCClientRegistrationTokenClaimsContextassociated with a given request.- Parameters:
strategy- lookup strategy
-
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
-