Class AbstractConsentAction
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.profile.action.AbstractConditionalProfileAction
-
- net.shibboleth.idp.profile.AbstractProfileAction
-
- net.shibboleth.idp.profile.interceptor.AbstractProfileInterceptorAction
-
- net.shibboleth.idp.consent.flow.impl.AbstractConsentAction
-
- All Implemented Interfaces:
net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.InitializableComponent,org.opensaml.profile.action.ProfileAction,Aware,MessageSource,MessageSourceAware,Action
- Direct Known Subclasses:
AbstractAttributeReleaseAction,AbstractConsentStorageAction,ExtractConsent,PopulateConsentContext
public abstract class AbstractConsentAction extends net.shibboleth.idp.profile.interceptor.AbstractProfileInterceptorActionBase class for consent actions. Ensures that :- a consent context exists in the profile request context
- the flow descriptor is a
ConsentFlowDescriptor
- Event:
EventIds.INVALID_PROFILE_CTX
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.consent.context.ConsentContextconsentContextConsent context.private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext>consentContextLookupStrategyStrategy used to find theConsentContextfrom theProfileRequestContext.private ConsentFlowDescriptorconsentFlowDescriptorConsent flow descriptor.private LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description AbstractConsentAction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext, net.shibboleth.idp.profile.context.ProfileInterceptorContext interceptorContext)net.shibboleth.idp.consent.context.ConsentContextgetConsentContext()Get the consent context.ConsentFlowDescriptorgetConsentFlowDescriptor()Get the consent flow descriptor.voidsetConsentContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext> strategy)Set the consent context lookup strategy.-
Methods inherited from class net.shibboleth.idp.profile.interceptor.AbstractProfileInterceptorAction
doExecute, doExecute, doPreExecute, setLookupStrategy
-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final Logger log
Class logger.
-
consentContext
@Nullable private net.shibboleth.idp.consent.context.ConsentContext consentContext
Consent context.
-
consentFlowDescriptor
@Nullable private ConsentFlowDescriptor consentFlowDescriptor
Consent flow descriptor.
-
consentContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext> consentContextLookupStrategy
Strategy used to find theConsentContextfrom theProfileRequestContext.
-
-
Method Detail
-
getConsentContext
@Nullable public net.shibboleth.idp.consent.context.ConsentContext getConsentContext()
Get the consent context.- Returns:
- the consent context
-
getConsentFlowDescriptor
@Nullable public ConsentFlowDescriptor getConsentFlowDescriptor()
Get the consent flow descriptor.- Returns:
- the consent flow descriptor
-
setConsentContextLookupStrategy
public void setConsentContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext> strategy)Set the consent context lookup strategy.- Parameters:
strategy- the consent context lookup strategy
-
doPreExecute
protected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull net.shibboleth.idp.profile.context.ProfileInterceptorContext interceptorContext)- Overrides:
doPreExecutein classnet.shibboleth.idp.profile.interceptor.AbstractProfileInterceptorAction
-
-