Class TotpCredential
java.lang.Object
com.codename1.backend.security.mfa.TotpCredential
What the server keeps of one user's authenticator app.
-
Constructor Summary
ConstructorsConstructorDescriptionTotpCredential(String username, byte[] secret, boolean confirmed, long lastUsedStep) -
Method Summary
Modifier and TypeMethodDescriptionlongbyte[]The shared secret.boolean
-
Constructor Details
-
TotpCredential
- Parameters:
confirmed- whether the user has proved the app works, by entering a code from it; until then the secret is not a second factorlastUsedStep- the time step of the last code accepted, or -1
-
-
Method Details
-
getUsername
-
getSecret
public byte[] getSecret()The shared secret. -
isConfirmed
public boolean isConfirmed() -
getLastUsedStep
public long getLastUsedStep()
-