Package eu.webtoolkit.jwt.auth
Class EmailTokenResult
java.lang.Object
eu.webtoolkit.jwt.auth.EmailTokenResult
public class EmailTokenResult
extends java.lang.Object
The result of processing an email-sent token.
An email token can be used for two purposes:
- the user needs to verify his email address by returning a token sent to his supplied email address.
- the user indicates that he lost his email and wants to prove his identity by acknowledging an email to a previously verified email account.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EmailTokenResult.Result
Enumeration that describes the result. -
Constructor Summary
Constructors Constructor Description EmailTokenResult(EmailTokenResult.Result result)
Constructor.EmailTokenResult(EmailTokenResult.Result result, User user)
Constructor. -
Method Summary
Modifier and Type Method Description EmailTokenResult.Result
getResult()
Returns the result.User
getUser()
Returns the user, if any.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EmailTokenResult
Constructor.Creates an email token result.
-
EmailTokenResult
Constructor.Calls
this(result, new User())
-
-
Method Details
-
getResult
Returns the result. -
getUser
Returns the user, if any.The identified user is only valid when the token result is UpdatePassword or EmailConfirmed. In that case, you may login the user as strongly authenticated since he presented a random token that was sent to his own email address.
-