public class AttributesAuditExtractor extends Object implements com.google.common.base.Function<ProfileRequestContext,Collection<String>>
Function that returns the attribute IDs from an AttributeContext.| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Predicate<ProfileRequestContext> |
activationCondition
A predicate to control whether attributes should be extracted for logging.
|
private com.google.common.base.Function<ProfileRequestContext,AttributeContext> |
attributeContextLookupStrategy
Lookup strategy for AttributeContext to read from.
|
private boolean |
useUnfiltered
Extract the unfiltered attribute list instead of the filtered list.
|
| Constructor and Description |
|---|
AttributesAuditExtractor()
Constructor.
|
AttributesAuditExtractor(com.google.common.base.Function<ProfileRequestContext,AttributeContext> strategy)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
apply(ProfileRequestContext input) |
void |
setActivationCondition(com.google.common.base.Predicate<ProfileRequestContext> condition)
Set a condition to evaluate to control whether attributes are extracted for logging.
|
void |
setUseUnfiltered(boolean flag)
Set whether to extract the list of unfiltered attributes instead of the filtered attributes.
|
private boolean useUnfiltered
@Nullable private com.google.common.base.Predicate<ProfileRequestContext> activationCondition
@Nonnull private final com.google.common.base.Function<ProfileRequestContext,AttributeContext> attributeContextLookupStrategy
public AttributesAuditExtractor()
public AttributesAuditExtractor(@Nonnull com.google.common.base.Function<ProfileRequestContext,AttributeContext> strategy)
strategy - lookup strategy for AttributeContextpublic void setUseUnfiltered(boolean flag)
flag - flag to setpublic void setActivationCondition(@Nullable com.google.common.base.Predicate<ProfileRequestContext> condition)
This is used primarily to prevent logging of attributes for profiles in which attributes may be resolved, but not actually disclosed to a relying party.
condition - condition to evaluate@Nullable public Collection<String> apply(@Nullable ProfileRequestContext input)
apply in interface com.google.common.base.Function<ProfileRequestContext,Collection<String>>Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.