public class FilterByQueriedAttributes extends AbstractProfileAction
Attribute objects in
an AttributeQuery.EventIds.PROCEED_EVENT_ID| Modifier and Type | Field and Description |
|---|---|
private AttributeContext |
attributeContext
AttributeContext to filter.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> |
attributeContextLookupStrategy
Strategy used to locate the
AttributeContext to filter. |
private org.slf4j.Logger |
log
Class logger.
|
private SAML2AttributesMapperService |
mapperService
Service used to get the engine used to filter attributes.
|
private org.opensaml.saml.saml2.core.AttributeQuery |
query
Query to filter against.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AttributeQuery> |
queryLookupStrategy
Strategy used to locate the
AttributeQuery to filter against. |
| Constructor and Description |
|---|
FilterByQueriedAttributes(SAML2AttributesMapperService mapper)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
private int |
filterRequestedValues(IdPAttribute attribute,
Collection<IdPAttribute> requestedAttributes)
Adjust an input attribute's values based on any values requested.
|
void |
setAttributeContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> strategy)
Set the strategy used to locate the
AttributeContext associated with a given
ProfileRequestContext. |
void |
setQueryLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AttributeQuery> strategy)
Set the strategy used to locate the
AttributeQuery associated with a given ProfileRequestContext. |
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull private final SAML2AttributesMapperService mapperService
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AttributeQuery> queryLookupStrategy
AttributeQuery to filter against.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> attributeContextLookupStrategy
AttributeContext to filter.@Nullable private org.opensaml.saml.saml2.core.AttributeQuery query
@Nullable private AttributeContext attributeContext
public FilterByQueriedAttributes(@Nonnull SAML2AttributesMapperService mapper)
mapper - mapper used to consume designatorspublic void setQueryLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AttributeQuery> strategy)
AttributeQuery associated with a given ProfileRequestContext.strategy - lookup strategypublic void setAttributeContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> strategy)
AttributeContext associated with a given
ProfileRequestContext.strategy - lookup strategyprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileActionprivate int filterRequestedValues(@Nonnull IdPAttribute attribute, @Nonnull@NonnullElements Collection<IdPAttribute> requestedAttributes)
attribute - attribute to filterrequestedAttributes - the attributes (and possibly values) requestedCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.