@NotThreadSafe public class AttributeResolutionContext extends BaseContext
AttributeResolver interface.BaseContext.ContextSetNoRemoveIteratorDecorator| Modifier and Type | Field and Description |
|---|---|
private boolean |
allowCachedResults
Whether the resolver should allow for results to come from cache.
|
private String |
attributeIssuerID
The attribute source identity.
|
private String |
attributeRecipientGroupID
The attribute recipient's group identity.
|
private String |
attributeRecipientID
The attribute recipient identity.
|
private String |
principal
The principal associated with this resolution.
|
private String |
principalAuthenticationMethod
Deprecated.
|
private Set<String> |
requestedAttributeNames
(internal) Names of the attributes that have been requested to be resolved.
|
private String |
resolutionLabel
Label distinguishing different "types" of attribute resolution for use in resolver.
|
private Map<String,IdPAttribute> |
resolvedAttributes
Attributes which were resolved and released by the attribute resolver.
|
| Constructor and Description |
|---|
AttributeResolutionContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowCachedResults()
Get whether to allow for results from cache (defaults to true).
|
String |
getAttributeIssuerID()
Get the attribute issuer (me) associated with this resolution.
|
String |
getAttributeRecipientGroupID()
Get the attribute recipient grouping associated with this resolution.
|
String |
getAttributeRecipientID()
Get the attribute recipient (her) associated with this resolution.
|
String |
getPrincipal()
Set the principal associated with this resolution.
|
String |
getPrincipalAuthenticationMethod()
Deprecated.
|
Collection<String> |
getRequestedIdPAttributeNames()
Get a live collection of the (internal) names of the attributes requested to be resolved.
|
String |
getResolutionLabel()
Get the optional "contextual" label associated with this attribute resolution.
|
Map<String,IdPAttribute> |
getResolvedIdPAttributes()
Get the collection of resolved attributes.
|
void |
resolveAttributes(ReloadableService<AttributeResolver> attributeResolverService)
Helper method to invoke an AttributeResolver service using this context.
|
AttributeResolutionContext |
setAllowCachedResults(boolean flag)
Set whether to allow for results from cache.
|
AttributeResolutionContext |
setAttributeIssuerID(String value)
Set the attribute issuer (me) associated with this resolution.
|
AttributeResolutionContext |
setAttributeRecipientGroupID(String value)
Set the attribute recipient grouping associated with this resolution.
|
AttributeResolutionContext |
setAttributeRecipientID(String value)
Set the attribute recipient (her) associated with this resolution.
|
AttributeResolutionContext |
setPrincipal(String who)
Get the principal associated with this resolution.
|
AttributeResolutionContext |
setPrincipalAuthenticationMethod(String method)
Deprecated.
|
AttributeResolutionContext |
setRequestedIdPAttributeNames(Collection<String> names)
Set the (internal) names of the attributes requested to be resolved.
|
AttributeResolutionContext |
setResolutionLabel(String label)
Set the optional "contextual" label associated with this attribute resolution.
|
AttributeResolutionContext |
setResolvedIdPAttributes(Collection<IdPAttribute> attributes)
Set the set of resolved attributes.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nonnull @NonnullElements private Set<String> requestedAttributeNames
@Nullable private String attributeRecipientID
@Nullable private String attributeRecipientGroupID
@Deprecated @Nullable private String principalAuthenticationMethod
private boolean allowCachedResults
@Nullable private String resolutionLabel
@Nonnull @NonnullElements private Map<String,IdPAttribute> resolvedAttributes
public boolean getAllowCachedResults()
@Nonnull public AttributeResolutionContext setAllowCachedResults(boolean flag)
flag - flag to set@Nullable public String getResolutionLabel()
Plugins/scripts/etc. can use this field to connect their behavior back to custom invocations of the resolver service.
@Nonnull public AttributeResolutionContext setResolutionLabel(@Nullable String label)
label - label to set@Nullable public String getAttributeIssuerID()
@Nullable public AttributeResolutionContext setAttributeIssuerID(@Nullable String value)
value - the attribute issuer associated with this resolution.@Nullable public String getAttributeRecipientID()
@Nullable public AttributeResolutionContext setAttributeRecipientID(@Nullable String value)
value - the attribute recipient associated with this resolution.@Nullable public String getAttributeRecipientGroupID()
This is a protocol-independent way to represent an association between the attribute recipient and some larger group that may be relevant to attribute resolution.
@Nullable public AttributeResolutionContext setAttributeRecipientGroupID(@Nullable String value)
value - the attribute recipient group associated with this resolution@Deprecated @Nullable public String getPrincipalAuthenticationMethod()
This is deprecated, as the V3 representation of authentication results is more general.
@Deprecated @Nullable public AttributeResolutionContext setPrincipalAuthenticationMethod(@Nullable String method)
This is deprecated, as the V3 representation of authentication results is more general.
method - The principalAuthenticationMethod to set@Nullable public String getPrincipal()
@Nullable public AttributeResolutionContext setPrincipal(@Nullable String who)
who - the principal to set.@Nonnull @NonnullElements @Live public Collection<String> getRequestedIdPAttributeNames()
@Nullable public AttributeResolutionContext setRequestedIdPAttributeNames(@Nonnull@NonnullElements Collection<String> names)
names - the (internal) names of the attributes requested to be resolved@Nonnull @NonnullElements @Unmodifiable @NotLive public Map<String,IdPAttribute> getResolvedIdPAttributes()
@Nullable public AttributeResolutionContext setResolvedIdPAttributes(@Nullable@NullableElements Collection<IdPAttribute> attributes)
attributes - set of resolved attributespublic void resolveAttributes(@Nonnull ReloadableService<AttributeResolver> attributeResolverService)
attributeResolverService - the service to invokeCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.