public class FilterAttributes extends AbstractProfileAction
AttributeFilter for the current request.EventIds.PROCEED_EVENT_ID, IdPEventIds.UNABLE_FILTER_ATTRIBS| 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 ReloadableService<AttributeFilter> |
attributeFilterService
Service used to get the engine used to filter attributes.
|
private AuthenticationContext |
authenticationContext
AuthenticationContext to work from (if any).
|
private Function<org.opensaml.profile.context.ProfileRequestContext,AuthenticationContext> |
authnContextLookupStrategy
Strategy used to locate the
AuthenticationContext associated with a given ProfileRequestContext. |
private Function<org.opensaml.profile.context.ProfileRequestContext,AttributeFilterContext> |
filterContextCreationStrategy
Strategy used to locate or create the
AttributeFilterContext. |
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
issuerLookupStrategy
Strategy used to locate the identity of the issuer associated with the attribute filtering.
|
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
maskFailures
Whether to treat resolver errors as equivalent to resolving no attributes.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> |
metadataContextLookupStrategy
Strategy used to locate the
SAMLMetadataContext associated with a given ProfileRequestContext. |
private Function<AttributeFilterContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> |
metadataFromFilterLookupStrategy
Strategy used to locate the
SAMLMetadataContext associated with a given AttributeFilterContext. |
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
principalNameLookupStrategy
Strategy used to locate the principal name associated with the attribute filtering.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
recipientLookupStrategy
Strategy used to locate the identity of the recipient associated with the attribute filtering.
|
| Constructor and Description |
|---|
FilterAttributes(ReloadableService<AttributeFilter> filterService)
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 void |
populateFilterContext(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AttributeFilterContext filterContext)
Fill in the filter context data.
|
void |
setAttributeContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> strategy)
Set the strategy used to locate the
AttributeContext associated with a given
ProfileRequestContext. |
void |
setAuthenticationContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,AuthenticationContext> strategy)
Set the strategy used to locate the
AuthenticationContext associated with a given
ProfileRequestContext. |
void |
setFilterContextCreationStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,AttributeFilterContext> strategy)
Set the strategy used to locate or create the
AttributeFilterContext to populate. |
void |
setIssuerLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to lookup the issuer for this attribute filtering.
|
void |
setMaskFailures(boolean flag)
Set whether to treat resolution failure as equivalent to resolving no attributes.
|
void |
setMetadataContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> strategy)
Set the strategy used to locate the
SAMLMetadataContext associated with a given
ProfileRequestContext. |
void |
setPrincipalNameLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to locate the principal name for this attribute filtering.
|
void |
setRecipientLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to lookup the recipient for this attribute filtering.
|
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 ReloadableService<AttributeFilter> attributeFilterService
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,String> issuerLookupStrategy
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,String> recipientLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,AttributeFilterContext> filterContextCreationStrategy
AttributeFilterContext.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> attributeContextLookupStrategy
AttributeContext to filter.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,String> principalNameLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,AuthenticationContext> authnContextLookupStrategy
AuthenticationContext associated with a given ProfileRequestContext.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> metadataContextLookupStrategy
SAMLMetadataContext associated with a given ProfileRequestContext.@Nonnull private Function<AttributeFilterContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> metadataFromFilterLookupStrategy
SAMLMetadataContext associated with a given AttributeFilterContext.private boolean maskFailures
@Nullable private AuthenticationContext authenticationContext
@Nullable private AttributeContext attributeContext
public FilterAttributes(@Nonnull ReloadableService<AttributeFilter> filterService)
filterService - engine used to filter attributespublic void setIssuerLookupStrategy(@Nullable Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
strategy - lookup strategypublic void setRecipientLookupStrategy(@Nullable Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
strategy - lookup strategypublic void setFilterContextCreationStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,AttributeFilterContext> strategy)
AttributeFilterContext to populate.strategy - lookup/creation strategypublic void setAttributeContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> strategy)
AttributeContext associated with a given
ProfileRequestContext.strategy - strategy used to locate the AttributeContext associated with a given
ProfileRequestContextpublic void setPrincipalNameLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
strategy - lookup strategypublic void setAuthenticationContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,AuthenticationContext> strategy)
AuthenticationContext associated with a given
ProfileRequestContext.strategy - strategy used to locate the AuthenticationContext associated with a given
ProfileRequestContextpublic void setMetadataContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> strategy)
SAMLMetadataContext associated with a given
ProfileRequestContext. Also sets the strategy to find the SAMLMetadataContext
from the AttributeFilterContext;
SAMLMetadataContextstrategy - strategy used to locate the AuthenticationContext associated with a given
ProfileRequestContextpublic void setMaskFailures(boolean flag)
This matches the behavior of V2.
flag - flag to setprotected 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 void populateFilterContext(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AttributeFilterContext filterContext)
profileRequestContext - current profile request contextfilterContext - context to populateCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.