Class AbstractOAuth2InterceptorAwareProfileConfiguration
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.profile.config.AbstractProfileConfiguration
net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2InterceptorAwareProfileConfiguration
- All Implemented Interfaces:
InterceptorAwareProfileConfiguration,OAuth2InterceptorAwareProfileConfiguration,OAuth2ProfileConfiguration,ConditionalProfileConfiguration,ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AbstractOAuth2ClientAuthenticableProfileConfiguration,DefaultOAuth2TokenAudienceConfiguration,DefaultOIDCLogoutConfiguration
public abstract class AbstractOAuth2InterceptorAwareProfileConfiguration
extends AbstractInterceptorAwareProfileConfiguration
implements OAuth2InterceptorAwareProfileConfiguration
Abstract profile configuration implementation for interceptor flow aware OAuth2 profile configurations.
- Since:
- 3.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<MessageContext,Function<MessageContext, Exception>> Lookup strategy for message handler.Fields inherited from interface net.shibboleth.profile.config.ProfileConfiguration
DEFAULT_DISALLOWED_FEATURES -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptiongetMessageHandler(MessageContext messageContext) Get a custom handler for a message produced or consumed by this profile.voidsetMessageHandler(Function<MessageContext, Exception> handler) Set a handler for the message.voidsetMessageHandlerLookupStrategy(Function<MessageContext, Function<MessageContext, Exception>> strategy) Set a lookup strategy for the handler for the message.Methods inherited from class net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategyMethods inherited from class net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationConditionMethods inherited from class net.shibboleth.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategyMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.profile.config.ConditionalProfileConfiguration
getActivationConditionMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.idp.profile.config.InterceptorAwareProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlowsMethods inherited from interface net.shibboleth.profile.config.ProfileConfiguration
getDisallowedFeatures, getSecurityConfiguration, isFeatureDisallowed
-
Field Details
-
messageHandlerLookupStrategy
@Nonnull private Function<MessageContext,Function<MessageContext, messageHandlerLookupStrategyException>> Lookup strategy for message handler.
-
-
Constructor Details
-
AbstractOAuth2InterceptorAwareProfileConfiguration
Constructor.- Parameters:
profileId- Unique profile identifier.
-
-
Method Details
-
getMessageHandler
@Nullable public Function<MessageContext,Exception> getMessageHandler(@Nullable MessageContext messageContext) Get a custom handler for a message produced or consumed by this profile.This function MUST be stateless and reusable if statically configured, or may be stateful if obtained by means of a more dynamic strategy.
The use of the
FunctionAPI rather than the OpenSAMLMessageHandlerAPI is a concession to making scripted or otherwise non-Java implementations easily usable, and avoiding the explicit need to raise exceptions to signal errors, in cases where doing do is awkward.- Specified by:
getMessageHandlerin interfaceOAuth2InterceptorAwareProfileConfiguration- Parameters:
messageContext- message context- Returns:
- message handler
-
setMessageHandler
Set a handler for the message.- Parameters:
handler- message handler- Since:
- 3.2.0
-
setMessageHandlerLookupStrategy
public void setMessageHandlerLookupStrategy(@Nonnull Function<MessageContext, Function<MessageContext, Exception>> strategy) Set a lookup strategy for the handler for the message.- Parameters:
strategy- lookup strategy- Since:
- 3.2.0
-