Class InitializeOAuth2ClientAuthenticationContext
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.InitializeOAuth2ClientAuthenticationContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public class InitializeOAuth2ClientAuthenticationContext extends AbstractMessageHandler
Anactionthat initializes anOAuth2ClientAuthenticationContextfor later use.- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_PROFILE_CTX- Postcondition:
- create an
OAuth2ClientAuthenticationContext
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<MessageContext,OAuth2ClientAuthenticationContext>oauth2ClientAuthenticationContextLookupStrategyThe strategy used to lookup or create theOAuth2ClientAuthenticationContextfor storing the client authentication.
-
Constructor Summary
Constructors Constructor Description InitializeOAuth2ClientAuthenticationContext()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, 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 final org.slf4j.Logger log
Class logger.
-
oauth2ClientAuthenticationContextLookupStrategy
@Nonnull private Function<MessageContext,OAuth2ClientAuthenticationContext> oauth2ClientAuthenticationContextLookupStrategy
The strategy used to lookup or create theOAuth2ClientAuthenticationContextfor storing the client authentication.
-
-
Method Detail
-
setOAuth2ClientAuthenticationContextLookupStrategy
public void setOAuth2ClientAuthenticationContextLookupStrategy(@Nonnull Function<MessageContext,OAuth2ClientAuthenticationContext> strgy)Set the strategy to lookup theOAuth2ClientAuthenticationContextfrom theProfileRequestContext.- Parameters:
strgy- the strategy.
-
doInvoke
protected void doInvoke(MessageContext messageContext) throws MessageHandlerException
- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-