Class DuoAuthenticationContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.authn.duo.context.DuoAuthenticationContext
- All Implemented Interfaces:
Iterable<BaseContext>
Context that carries Duo factor and device or passcode to be used in validation.
This is used for AuthAPI-based use of Duo rather than the usual delegation of the process to their Web SDK.
- Parent:
AuthenticationContext
- Added:
- After extracting the Duo factor and device or passcode during authentication
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the client address.Get the device ID.Get the factor to use.Get the passcode.Get the pushinfo.Get the username.setClientAddress
(String address) Set the client address.setDeviceID
(String deviceId) Set the device ID.Set the factor to use.setPasscode
(String passcode) Set the passcode.setUsername
(String name) Set the username.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
username
Username. -
clientAddress
Client address. -
duoFactor
Factor. -
duoDevice
Device ID. -
duoPasscode
Passcode. -
pushInfo
PushInfo data.
-
-
Constructor Details
-
DuoAuthenticationContext
public DuoAuthenticationContext()Constructor.
-
-
Method Details
-
getUsername
Get the username.- Returns:
- username
-
setUsername
Set the username.- Parameters:
name
- username- Returns:
- this context
-
getClientAddress
Get the client address.- Returns:
- address
-
setClientAddress
Set the client address.- Parameters:
address
- client address- Returns:
- this context
-
getDeviceID
Get the device ID.- Returns:
- the Duo device identifier
-
setDeviceID
Set the device ID.- Parameters:
deviceId
- the Duo device identifier- Returns:
- this context
-
getFactor
Get the factor to use.- Returns:
- the factor to use
-
setFactor
Set the factor to use.- Parameters:
factor
- the Duo factor- Returns:
- this context
-
getPasscode
Get the passcode.- Returns:
- the passcode
-
setPasscode
Set the passcode.- Parameters:
passcode
- the passcode- Returns:
- this context
-
getPushInfo
Get the pushinfo.- Returns:
- the pushinfo
-