public class PreferredPrincipalContext extends BaseContext
Principal.
Authentication protocols with features for preferring specific forms of
authentication with optional semantics will populate this context type with
an expression of those preferences in the form of an ordered list of custom
Principal objects.
AuthenticationContextBaseContext.ContextSetNoRemoveIteratorDecorator| Modifier and Type | Field and Description |
|---|---|
private List<Principal> |
preferredPrincipals
The principals reflecting the preference.
|
| Constructor and Description |
|---|
PreferredPrincipalContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Principal> |
getPreferredPrincipals()
Get an immutable list of principals reflecting the request preferences.
|
boolean |
isAcceptable(Collection<Principal> principals)
Helper method that evaluates
Principal objects against this context
to determine if the input is compatible with it. |
boolean |
isAcceptable(PrincipalSupportingComponent component)
Helper method that evaluates a
PrincipalSupportingComponent against
this context to determine if the input is compatible with it. |
<T extends Principal> |
isAcceptable(T principal)
Helper method that evaluates a
Principal object against this context
to determine if the input is compatible with it. |
PreferredPrincipalContext |
setPreferredPrincipals(List<Principal> principals)
Set list of principals reflecting the request preferences.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nonnull @NonnullElements private List<Principal> preferredPrincipals
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<Principal> getPreferredPrincipals()
@Nonnull public PreferredPrincipalContext setPreferredPrincipals(@Nonnull@NonnullElements List<Principal> principals)
principals - list of principalspublic boolean isAcceptable(@Nonnull PrincipalSupportingComponent component)
PrincipalSupportingComponent against
this context to determine if the input is compatible with it.component - component to evaluatepublic boolean isAcceptable(@Nonnull@NonnullElements Collection<Principal> principals)
Principal objects against this context
to determine if the input is compatible with it.principals - principal(s) to evaluatepublic <T extends Principal> boolean isAcceptable(@Nonnull T principal)
Principal object against this context
to determine if the input is compatible with it.T - type of principalprincipal - principal to evaluateCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.