Class EmailCode
java.lang.Object
com.codename1.backend.security.mfa.EmailCode
What an
EmailCodeRepository holds for one user.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintHow many times a code has been tried against the waiting one.The hash of the code that is waiting to be entered; empty when none is.longWhen the waiting code stops working, epoch milliseconds.longWhen the waiting code was mailed, epoch milliseconds.booleanWhether the user signs in with a mailed code.
-
Constructor Details
-
EmailCode
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether the user signs in with a mailed code. -
getCodeHash
The hash of the code that is waiting to be entered; empty when none is. -
getExpiresAt
public long getExpiresAt()When the waiting code stops working, epoch milliseconds. -
getAttempts
public int getAttempts()How many times a code has been tried against the waiting one. -
getSentAt
public long getSentAt()When the waiting code was mailed, epoch milliseconds.
-