public interface TwoFactorAuthenticationService
TwoFactorAuthenticationFilter and TwoFactorAuthenticationController| Modifier and Type | Method and Description |
|---|---|
void |
disableForUser()
Disable 2 factor authentication for the current user
|
void |
enableForUser() |
String |
generateSecretKey() |
boolean |
isConfiguredForUser()
Check if the user is 2 factor authentication ready.
|
boolean |
isVerificationCodeValidForUser(String verificationCode)
Check verificationcode given by user from Google Authenticator
|
void |
resetSecretForUser() |
void |
saveSecretForUser(String secret)
Add generated userSecret to userdata.
|
boolean |
userIsBlocked() |
boolean isVerificationCodeValidForUser(String verificationCode)
verificationCode - code given by user from Google Authenticatorboolean userIsBlocked()
void saveSecretForUser(String secret)
secret - given secret for uservoid resetSecretForUser()
void enableForUser()
void disableForUser()
Removes the secret key and set the TwoFactorAuthentication field to false
boolean isConfiguredForUser()
String generateSecretKey()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.