Class DuoPasswordlessContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.plugin.authn.duo.context.DuoPasswordlessContext
- All Implemented Interfaces:
Iterable<BaseContext>
Context that tracks username and signals usage of Duo in a passwordless mode.
This is used for a more specialized use of the Duo service as a single factor. The presence of the context acts as a signal of this behavior, and the username is tracked here since it is typically set by calling code.
- Since:
- 2.1.0
- Parent:
AuthenticationContext- Added:
- By flow action
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether to bypass the passwordless view directly into Duo.private StringUsername. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the username.booleanGet whether to bypass the view in favor of directly invoking the service.setBypassView(boolean flag) Set whether to bypass the view in favor of directly invoking the service.setUsername(String name) Set the username.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
username
Username. -
bypassView
private boolean bypassViewWhether to bypass the passwordless view directly into Duo.
-
-
Constructor Details
-
DuoPasswordlessContext
public DuoPasswordlessContext()
-
-
Method Details
-
getUsername
Get the username.- Returns:
- username
-
setUsername
Set the username.- Parameters:
name- username- Returns:
- this context
-
isBypassView
public boolean isBypassView()Get whether to bypass the view in favor of directly invoking the service.- Returns:
- true iff the view should be bypassed
-
setBypassView
Set whether to bypass the view in favor of directly invoking the service.- Parameters:
flag- flag to set- Returns:
- this context
-