public final class MultiRelyingPartyContext
extends org.opensaml.messaging.context.BaseContext
BaseContext representing multiple relying parties involved in a request, usually a
subcontext of ProfileRequestContext.
The multiple parties may be accessed as a collection, by their name, or by "labels", which are specific to a given profile/scenario.
| Modifier and Type | Field and Description |
|---|---|
private Map<String,RelyingPartyContext> |
relyingPartyIdMap
Map of RP contexts indexed by name.
|
private com.google.common.collect.ListMultimap<String,RelyingPartyContext> |
relyingPartyLabelMap
Multimap of RP contexts indexed by role.
|
| Constructor and Description |
|---|
MultiRelyingPartyContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRelyingPartyContext(String label,
RelyingPartyContext context)
Add a RP context associated with a label.
|
RelyingPartyContext |
getRelyingPartyContextById(String id)
Get a RP context by name/id.
|
Collection<RelyingPartyContext> |
getRelyingPartyContexts()
Get an immutable collection of the RP contexts.
|
Collection<RelyingPartyContext> |
getRelyingPartyContexts(String label)
Get an immutable collection of RP contexts associated with a label.
|
void |
removeRelyingPartyContext(String label,
RelyingPartyContext context)
Remove a RP context associated with a label.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nonnull @NonnullElements private Map<String,RelyingPartyContext> relyingPartyIdMap
@Nonnull @NonnullElements private com.google.common.collect.ListMultimap<String,RelyingPartyContext> relyingPartyLabelMap
@Nonnull @NonnullElements @NotLive @Unmodifiable public Collection<RelyingPartyContext> getRelyingPartyContexts()
@Nonnull @NonnullElements @NotLive @Unmodifiable public Collection<RelyingPartyContext> getRelyingPartyContexts(@Nonnull@NotEmpty String label)
label - the label to search for@Nullable public RelyingPartyContext getRelyingPartyContextById(@Nonnull@NotEmpty String id)
id - the identifier to search forpublic void addRelyingPartyContext(@Nonnull@NotEmpty String label, @Nonnull RelyingPartyContext context)
label - the label to associate with the contextcontext - context to addpublic void removeRelyingPartyContext(@Nonnull@NotEmpty String label, @Nonnull RelyingPartyContext context)
label - the label associated with the contextcontext - context to removeCopyright © 1999–2014. All rights reserved.