public class AuthenticationErrorContext extends BaseContext
The login process is particularly prone to requiring detailed error information to provide appropriate user feedback and auditing, and this context tracks errors that occur and preserves detailed information about the kind of errors encountered in multi-part authentication flows.
AuthenticationContextBaseContext.ContextSetNoRemoveIteratorDecorator| Modifier and Type | Field and Description |
|---|---|
private Collection<String> |
classifiedErrors
Error conditions detected through classified error messages.
|
private List<Exception> |
exceptions
Ordered list of exceptions encountered.
|
| Constructor and Description |
|---|
AuthenticationErrorContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addException(Exception e)
Add an exception to the list.
|
Collection<String> |
getClassifiedErrors()
Get a mutable collection of error "tokens" associated with the context.
|
List<Exception> |
getExceptions()
Get an immutable list of the exceptions encountered.
|
boolean |
isClassifiedError(String error)
Check for the presence of a particular error condition in the context.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nonnull @NonnullElements private List<Exception> exceptions
@Nonnull @NonnullElements private Collection<String> classifiedErrors
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<Exception> getExceptions()
public void addException(@Nonnull Exception e)
e - exception to add@Nonnull @NonnullElements @Live public Collection<String> getClassifiedErrors()
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.