public class RequestedPrincipalContext
extends org.opensaml.messaging.context.BaseContext
BaseContext that holds information about an authentication request's
requirement for a specific custom Principal.
Authentication protocols with features for requesting specific forms of
authentication will populate this context type, typically as a child of the
AuthenticationContext, with an expression of those requirements in the
form of a protocol-specific operator string and an ordered list of custom
Principal objects.
During the authentication process, interactions with
PrincipalSupportingComponent-supporting objects
will depend on them satisfying context requirements, via the use of registered
PrincipalEvalPredicateFactory objects.
Upon successful authentication the most appropriate "matching" Principal will be
saved back to this context for use in generating a protocol response.
| Modifier and Type | Field and Description |
|---|---|
private Principal |
matchingPrincipal
The principal that satisfied the request, if any.
|
private String |
operatorString
Comparison operator specific to request protocol.
|
private List<Principal> |
requestedPrincipals
The principals reflecting the request requirements.
|
| Constructor and Description |
|---|
RequestedPrincipalContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Principal |
getMatchingPrincipal()
Get the principal that matched the request's requirements, if any.
|
String |
getOperator()
Get the comparison operator for matching requested principals.
|
List<Principal> |
getRequestedPrincipals()
Get an immutable list of principals reflecting the request requirements.
|
void |
setMatchingPrincipal(Principal principal)
Set the principal that matched the request's requirements, if any.
|
void |
setOperator(String operator)
Set the comparison operator for matching requested principals.
|
void |
setRequestedPrincipals(List<Principal> principals)
Set list of principals reflecting the request requirements.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nullable private String operatorString
@Nonnull @NonnullElements private List<Principal> requestedPrincipals
@Nonnull @NotEmpty public String getOperator()
public void setOperator(@Nullable String operator)
operator - comparison operator@Nonnull @NonnullElements @Unmodifiable @NotLive public List<Principal> getRequestedPrincipals()
public void setRequestedPrincipals(@Nonnull@NonnullElements List<Principal> principals)
principals - list of principals@Nullable public Principal getMatchingPrincipal()
Copyright © 1999–2015. All rights reserved.