Class TOTPContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.plugin.authn.totp.context.TOTPContext
- All Implemented Interfaces:
Iterable<BaseContext>
Context class for state of a TOTP validation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IntegerThe token code supplied.private Collection<byte[]>The raw token seeds associated with the subject.private StringThe subject identifier with respect to the token "back-end". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the token code.Collection<byte[]>Get the raw token seeds for the subject.Get the username.setTokenCode(Integer code) Set the token code.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
The subject identifier with respect to the token "back-end". -
tokenCode
The token code supplied. -
tokenSeeds
The raw token seeds associated with the subject.
-
-
Constructor Details
-
TOTPContext
public TOTPContext()Constructor.
-
-
Method Details
-
getUsername
Get the username.- Returns:
- the username
-
setUsername
Set the username.- Parameters:
name- the username- Returns:
- this context
-
getTokenCode
Get the token code.- Returns:
- the token code
-
setTokenCode
Set the token code.- Parameters:
code- the token code- Returns:
- this context
-
getTokenSeeds
Get the raw token seeds for the subject.- Returns:
- the token seeds
-