public final class ResolveAttributes extends AbstractProfileAction
AttributeResolver for the current request.EventIds.PROCEED_EVENT_ID, IdPEventIds.UNABLE_RESOLVE_ATTRIBS| Modifier and Type | Field and Description |
|---|---|
private Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> |
attributeContextCreationStrategy
Strategy used to locate or create the
AttributeContext to populate. |
private ReloadableService<AttributeResolver> |
attributeResolverService
Service used to get the resolver used to fetch attributes.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,Collection<String>> |
attributesLookupStrategy
Strategy used to determine the attributes to resolve.
|
private AuthenticationContext |
authenticationContext
AuthenticationContext to work from (if any).
|
private Function<org.opensaml.profile.context.ProfileRequestContext,AuthenticationContext> |
authnContextLookupStrategy
Strategy used to locate an
AuthenticationContext associated with a given ProfileRequestContext. |
private boolean |
createResolutionContext
Whether to create and populate
AttributeResolutionContext. |
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
issuerLookupStrategy
Strategy used to locate the identity of the issuer associated with the attribute resolution.
|
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,String> |
principalNameLookupStrategy
Strategy used to locate the principal name associated with the attribute resolution.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
recipientLookupStrategy
Strategy used to locate the identity of the recipient associated with the attribute resolution.
|
| Constructor and Description |
|---|
ResolveAttributes(ReloadableService<AttributeResolver> resolverService)
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 |
populateResolutionContext(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AttributeResolutionContext resolutionContext)
Fill in the resolution context data.
|
void |
setAttributeContextCreationStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> strategy)
Set the strategy used to locate or create the
AttributeContext to populate. |
void |
setAttributesLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,Collection<String>> strategy)
Set a strategy to use to obtain the names of the attributes to resolve.
|
void |
setAttributesToResolve(Collection<String> attributeIds)
Set the attribute IDs to pass into the resolver.
|
void |
setAuthenticationContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,AuthenticationContext> strategy)
Set the strategy used to locate the
AuthenticationContext associated with a given
ProfileRequestContext. |
void |
setCreateResolutionContext(boolean flag)
Set whether to create the
AttributeResolutionContext internally. |
void |
setIssuerLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to lookup the issuer for this attribute resolution.
|
void |
setMaskFailures(boolean flag)
Set whether to treat resolution failure as equivalent to resolving no attributes.
|
void |
setPrincipalNameLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to locate the principal name for this attribute resolution.
|
void |
setRecipientLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to lookup the recipient for this attribute resolution.
|
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<AttributeResolver> attributeResolverService
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,String> issuerLookupStrategy
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,String> recipientLookupStrategy
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,String> principalNameLookupStrategy
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,AuthenticationContext> authnContextLookupStrategy
AuthenticationContext associated with a given ProfileRequestContext.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> attributeContextCreationStrategy
AttributeContext to populate.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,Collection<String>> attributesLookupStrategy
private boolean maskFailures
private boolean createResolutionContext
AttributeResolutionContext.@Nullable private AuthenticationContext authenticationContext
public ResolveAttributes(@Nonnull ReloadableService<AttributeResolver> resolverService)
resolverService - resolver used to fetch 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 setPrincipalNameLookupStrategy(@Nullable Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
strategy - lookup strategypublic void setAuthenticationContextLookupStrategy(@Nullable 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 setAttributeContextCreationStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> strategy)
AttributeContext to populate.strategy - lookup/creation strategypublic void setAttributesLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,Collection<String>> strategy)
strategy - lookup strategypublic void setAttributesToResolve(@Nonnull@NonnullElements Collection<String> attributeIds)
attributeIds - attribute ID collectionpublic void setMaskFailures(boolean flag)
This matches the behavior of V2.
flag - flag to setpublic void setCreateResolutionContext(boolean flag)
AttributeResolutionContext internally.
Defaults to 'true', disable to allow external creation of the context.
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 populateResolutionContext(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AttributeResolutionContext resolutionContext)
profileRequestContext - current profile request contextresolutionContext - context to populateCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.