Package net.shibboleth.oidc.profile.impl
Class InitializeOAuth2ClientAuthenticationContext
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
net.shibboleth.oidc.profile.impl.InitializeOAuth2ClientAuthenticationContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
An
action that initializes an OAuth2ClientAuthenticationContext for later use.- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_PROFILE_CTX- Postcondition:
- create an
OAuth2ClientAuthenticationContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.The strategy used to lookup or create theOAuth2ClientAuthenticationContextfor storing the client authentication. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInvoke(MessageContext messageContext) voidsetOAuth2ClientAuthenticationContextLookupStrategy(Function<MessageContext, OAuth2ClientAuthenticationContext> strgy) Set the strategy to lookup theOAuth2ClientAuthenticationContextfrom theProfileRequestContext.Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, isPreInvokeCalled, setActivationConditionMethods 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. -
oauth2ClientAuthenticationContextLookupStrategy
@Nonnull private Function<MessageContext,OAuth2ClientAuthenticationContext> oauth2ClientAuthenticationContextLookupStrategyThe strategy used to lookup or create theOAuth2ClientAuthenticationContextfor storing the client authentication.
-
-
Constructor Details
-
InitializeOAuth2ClientAuthenticationContext
public InitializeOAuth2ClientAuthenticationContext()Constructor.
-
-
Method Details
-
setOAuth2ClientAuthenticationContextLookupStrategy
public void setOAuth2ClientAuthenticationContextLookupStrategy(@Nonnull Function<MessageContext, OAuth2ClientAuthenticationContext> strgy) Set the strategy to lookup theOAuth2ClientAuthenticationContextfrom theProfileRequestContext.- Parameters:
strgy- the strategy.
-
doInvoke
- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-