public class SubjectCanonicalizationContext extends BaseContext
Subject to canonicalize into a principal name, and
the collection of c14n flows to attempt.
There are different use cases in the system for the c14n process, but all of them share the use of this context as the input and output mechanism.
ProfileRequestContextBaseContext.ContextSetNoRemoveIteratorDecorator| Modifier and Type | Field and Description |
|---|---|
private SubjectCanonicalizationFlowDescriptor |
attemptedFlow
The last c14 flow attempted.
|
private Exception |
canonicalizationError
Exception raised by a failed canonicalization.
|
private Map<String,SubjectCanonicalizationFlowDescriptor> |
intermediateFlows
Previously attempted flows (could be failures or intermediate results).
|
private Map<String,SubjectCanonicalizationFlowDescriptor> |
potentialFlows
Flows that could potentially be used.
|
private String |
principalName
Canonical principal name of subject.
|
private String |
requesterId
Requester ID.
|
private String |
responderId
Responder ID.
|
private Subject |
subject
Subject to canonicalize.
|
| Constructor and Description |
|---|
SubjectCanonicalizationContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SubjectCanonicalizationFlowDescriptor |
getAttemptedFlow()
Get the last flow that was attempted for subject c14n.
|
Exception |
getException()
Get the exception raised by a failed canonicalization.
|
Map<String,SubjectCanonicalizationFlowDescriptor> |
getIntermediateFlows()
Get the set of flows that have been executed, successfully or otherwise, without producing a completed result.
|
Map<String,SubjectCanonicalizationFlowDescriptor> |
getPotentialFlows()
Get the set of flows that could potentially be used for subject canonicalization.
|
String |
getPrincipalName()
Get the canonical principal name of the subject.
|
String |
getRequesterId()
Get the requester's ID.
|
String |
getResponderId()
Get the responder's ID.
|
Subject |
getSubject()
Get the
Subject to canonicalize. |
SubjectCanonicalizationContext |
setAttemptedFlow(SubjectCanonicalizationFlowDescriptor flow)
Set the last flow that was attempted for subject c14n.
|
SubjectCanonicalizationContext |
setException(Exception e)
Set the exception raised by a failed canonicalization.
|
SubjectCanonicalizationContext |
setPrincipalName(String name)
Set the canonical principal name of the subject.
|
SubjectCanonicalizationContext |
setRequesterId(String id)
Set the requester's ID.
|
SubjectCanonicalizationContext |
setResponderId(String id)
Set the responder's ID.
|
SubjectCanonicalizationContext |
setSubject(Subject newSubject)
Set the
Subject to canonicalize. |
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nonnull @NonnullElements private final Map<String,SubjectCanonicalizationFlowDescriptor> potentialFlows
@Nonnull @NonnullElements private final Map<String,SubjectCanonicalizationFlowDescriptor> intermediateFlows
@Nullable private SubjectCanonicalizationFlowDescriptor attemptedFlow
public SubjectCanonicalizationContext()
@Nullable public Subject getSubject()
Subject to canonicalize.@Nonnull public SubjectCanonicalizationContext setSubject(@Nullable Subject newSubject)
Subject to canonicalize.newSubject - Subject to canonicalize@Nullable public String getPrincipalName()
@Nonnull public SubjectCanonicalizationContext setPrincipalName(@Nullable String name)
name - the canonical principal name@Nullable public Exception getException()
@Nonnull public SubjectCanonicalizationContext setException(@Nullable Exception e)
e - exception raised by a failed canonicalization@Nullable public String getRequesterId()
@Nonnull public SubjectCanonicalizationContext setRequesterId(@Nullable String id)
id - the requester's ID@Nullable public String getResponderId()
@Nonnull public SubjectCanonicalizationContext setResponderId(@Nullable String id)
id - the responder's ID@Nonnull @NonnullElements @Live public Map<String,SubjectCanonicalizationFlowDescriptor> getPotentialFlows()
@Nonnull @NonnullElements @Live public Map<String,SubjectCanonicalizationFlowDescriptor> getIntermediateFlows()
@Nullable public SubjectCanonicalizationFlowDescriptor getAttemptedFlow()
@Nonnull public SubjectCanonicalizationContext setAttemptedFlow(@Nullable SubjectCanonicalizationFlowDescriptor flow)
flow - last flow that was attempted for subject c14nCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.