public class AddAudienceRestrictionToAssertions extends AbstractConditionalProfileAction
Constructor and Description |
---|
AddAudienceRestrictionToAssertions()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext)
Performs this action.
|
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext)
Called prior to execution, actions may override this method to perform pre-processing for a request.
|
void |
setAddingAudiencesToExistingRestriction(boolean addingToExistingRestriction)
Set whether, if an assertion already contains an audience restriction, this action will add its audiences to
that restriction or create another one.
|
void |
setAudienceRestrictionsLookupStrategy(com.google.common.base.Function<ProfileRequestContext,Collection<String>> strategy)
Set the strategy used to obtain the audience restrictions to apply.
|
void |
setResponseLookupStrategy(com.google.common.base.Function<ProfileRequestContext,SAMLObject> strategy)
Set the strategy used to locate the Response to operate on.
|
getActivationCondition, setActivationCondition
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
destroy, doDestroy, initialize, isDestroyed, isInitialized
public AddAudienceRestrictionToAssertions()
public void setResponseLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,SAMLObject> strategy)
strategy
- lookup strategypublic void setAddingAudiencesToExistingRestriction(boolean addingToExistingRestriction)
addingToExistingRestriction
- whether this action will add its audiences to that restriction or create
another onepublic void setAudienceRestrictionsLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,Collection<String>> strategy)
strategy
- lookup strategyprotected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
If false is returned, execution will not proceed, and the action should attach an
EventContext
to the context tree to signal how to continue with overall
workflow processing.
If returning successfully, the last step should be to return the result of the superclass version of this method.
doPreExecute
in class AbstractConditionalProfileAction
profileRequestContext
- the current IdP profile request contextprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute
in class AbstractProfileAction
profileRequestContext
- the current IdP profile request contextCopyright © 2019. All rights reserved.