public class SubjectDerivedAttributeValuesFunction extends AbstractIdentifiableInitializableComponent implements Function<org.opensaml.profile.context.ProfileRequestContext,List<IdPAttributeValue<?>>>
IdPAttributeValues derived from the Principals
associated with the request. The precise values are determined by an injected Function.| Modifier and Type | Field and Description |
|---|---|
private Function<Principal,List<IdPAttributeValue<?>>> |
attributesValueFunction
|
private org.slf4j.Logger |
log
Logger.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,SubjectContext> |
scLookupStrategy
Strategy used to locate the
SubjectContext to use. |
| Constructor and Description |
|---|
SubjectDerivedAttributeValuesFunction()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<IdPAttributeValue<?>> |
apply(org.opensaml.profile.context.ProfileRequestContext prc) |
protected void |
doInitialize() |
private String |
getLogPrefix()
Produce a consistent log prefix.
|
void |
setAttributeValuesFunction(Function<Principal,List<IdPAttributeValue<?>>> engine)
Sets the attribute value function.
|
void |
setSubjectContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,SubjectContext> strategy)
Set the strategy used to locate the
SubjectContext associated with a given
AttributeResolutionContext. |
setIdgetIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdprivate final org.slf4j.Logger log
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,SubjectContext> scLookupStrategy
SubjectContext to use.@Nonnull private Function<Principal,List<IdPAttributeValue<?>>> attributesValueFunction
public SubjectDerivedAttributeValuesFunction()
public void setSubjectContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,SubjectContext> strategy)
SubjectContext associated with a given
AttributeResolutionContext.strategy - strategy used to locate the SubjectContext associated with a given
AttributeResolutionContextpublic void setAttributeValuesFunction(@Nonnull Function<Principal,List<IdPAttributeValue<?>>> engine)
engine - what to set.@Nullable public List<IdPAttributeValue<?>> apply(@Nullable org.opensaml.profile.context.ProfileRequestContext prc)
apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,List<IdPAttributeValue<?>>>protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractIdentifiedInitializableComponentComponentInitializationExceptionprivate String getLogPrefix()
Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.