public class ContextDerivedAttributeDefinition extends AbstractAttributeDefinition
ProfileRequestContext
associated with the request via a plugged in Function.| Modifier and Type | Field and Description |
|---|---|
private Function<org.opensaml.profile.context.ProfileRequestContext,List<IdPAttributeValue<?>>> |
attributeValuesFunction
Function used to generate the values associated with the
ProfileRequestContext
The function returns null or an empty list if the context isn't relevant. |
private org.slf4j.Logger |
log
Logger.
|
private Function<AttributeResolutionContext,org.opensaml.profile.context.ProfileRequestContext> |
prcLookupStrategy
Strategy used to locate the
ProfileRequestContext to use. |
| Constructor and Description |
|---|
ContextDerivedAttributeDefinition()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected IdPAttribute |
doAttributeDefinitionResolve(AttributeResolutionContext resolutionContext,
AttributeResolverWorkContext workContext) |
protected void |
doInitialize() |
void |
setAttributeValuesFunction(Function<org.opensaml.profile.context.ProfileRequestContext,List<IdPAttributeValue<?>>> function)
Sets the attribute value function.
|
void |
setProfileRequestContextLookupStrategy(Function<AttributeResolutionContext,org.opensaml.profile.context.ProfileRequestContext> strategy)
Set the strategy used to locate the
ProfileRequestContext associated with a given
AttributeResolutionContext. |
doResolve, getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getLogPrefix, getSourceAttributeId, isDependencyOnly, setAttributeEncoders, setDependencyOnly, setDisplayDescriptions, setDisplayNames, setSourceAttributeIddoDestroy, equals, getActivationCondition, getDependencies, getProfileContextStrategy, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setDependencies, setProfileContextStrategy, setPropagateResolutionExceptionssetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetActivationCondition, getDependencies, isPropagateResolutionExceptions, resolveinitialize, isInitializeddestroy, isDestroyedgetIdprivate final org.slf4j.Logger log
@Nonnull private Function<AttributeResolutionContext,org.opensaml.profile.context.ProfileRequestContext> prcLookupStrategy
ProfileRequestContext to use.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,List<IdPAttributeValue<?>>> attributeValuesFunction
ProfileRequestContext
The function returns null or an empty list if the context isn't relevant.public ContextDerivedAttributeDefinition()
public void setProfileRequestContextLookupStrategy(@Nonnull Function<AttributeResolutionContext,org.opensaml.profile.context.ProfileRequestContext> strategy)
ProfileRequestContext associated with a given
AttributeResolutionContext.strategy - strategy used to locate the ProfileRequestContext associated with a given
AttributeResolutionContextpublic void setAttributeValuesFunction(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,List<IdPAttributeValue<?>>> function)
function - what to set.@Nullable protected IdPAttribute doAttributeDefinitionResolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException
doAttributeDefinitionResolve in class AbstractAttributeDefinitionResolutionExceptionprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractAttributeDefinitionComponentInitializationExceptionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.