Class FilterByQueriedAttributeDesignators
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.saml.saml1.profile.impl.FilterByQueriedAttributeDesignators
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,ProfileAction
,Aware
,MessageSource
,MessageSourceAware
,Action
Action that filters a set of attributes against the
AttributeDesignator
objects in an AttributeQuery
.- Event:
EventIds.PROCEED_EVENT_ID
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AttributeContext
AttributeContext to filter.Strategy used to locate theAttributeContext
to filter.private final org.slf4j.Logger
Class logger.private AttributeQuery
Query to filter against.private Function<ProfileRequestContext,
Request> Strategy used to locate theRequest
containing the query to filter against.Transcoder registry service object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
decodeAttributeDesignator
(AttributeTranscoderRegistry registry, ProfileRequestContext profileRequestContext, AttributeDesignator input, Collection<String> results) Access the registry of transcoding rules to decode the inputAttributeDesignator
.protected void
doExecute
(ProfileRequestContext profileRequestContext) protected void
protected boolean
doPreExecute
(ProfileRequestContext profileRequestContext) void
Set the strategy used to locate theAttributeContext
associated with a givenProfileRequestContext
.void
Set the strategy used to locate theRequest
associated with a givenProfileRequestContext
.void
Sets the registry of transcoding rules to apply to encode attributes.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, 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, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplier
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
transcoderRegistry
Transcoder registry service object. -
requestLookupStrategy
Strategy used to locate theRequest
containing the query to filter against. -
attributeContextLookupStrategy
Strategy used to locate theAttributeContext
to filter. -
query
Query to filter against. -
attributeContext
AttributeContext to filter.
-
-
Constructor Details
-
FilterByQueriedAttributeDesignators
public FilterByQueriedAttributeDesignators()Constructor.
-
-
Method Details
-
setTranscoderRegistry
Sets the registry of transcoding rules to apply to encode attributes.- Parameters:
registry
- registry service interface
-
setRequestLookupStrategy
Set the strategy used to locate theRequest
associated with a givenProfileRequestContext
.- Parameters:
strategy
- lookup strategy
-
setAttributeContextLookupStrategy
public void setAttributeContextLookupStrategy(@Nonnull Function<ProfileRequestContext, AttributeContext> strategy) Set the strategy used to locate theAttributeContext
associated with a givenProfileRequestContext
.- Parameters:
strategy
- lookup strategy
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecute
in classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecute
in classAbstractProfileAction
-
decodeAttributeDesignator
private void decodeAttributeDesignator(@Nonnull AttributeTranscoderRegistry registry, @Nonnull ProfileRequestContext profileRequestContext, @Nonnull AttributeDesignator input, @Nonnull @NonnullElements @Live Collection<String> results) throws AttributeDecodingException Access the registry of transcoding rules to decode the inputAttributeDesignator
.- Parameters:
registry
- registry of transcoding rulesprofileRequestContext
- current profile request contextinput
- input objectresults
- collection to add attributeIDs to- Throws:
AttributeDecodingException
- if an error occurs or no results were obtained
-