Package tech.mgl.core.i
Interface MFAProvider
- All Known Implementing Classes:
SMSProvider,TOTPGoogleProvider,TOTPProvider
public interface MFAProvider
-
Method Summary
Modifier and TypeMethodDescriptiongenerateSecretKey(String user) getOtpAuthUrl(String secretKey, String account, String issuer) getOtpAuthUrlgetOtpAuthUrlQRCode(String secretKey, String account, String issuer) getOtpAuthUrlQRCodebooleanvalidateOtp(String secretKey, int otp)
-
Method Details
-
generateSecretKey
String generateSecretKey() -
generateSecretKey
-
validateOtp
- Parameters:
secretKey- secretKeyotp- otp- Returns:
- boolean
-
getOtpAuthUrl
getOtpAuthUrl- Parameters:
secretKey- secretKeyaccount- accountissuer- issuer- Returns:
- String
-
getOtpAuthUrlQRCode
getOtpAuthUrlQRCode- Parameters:
secretKey- secretKeyaccount- accountissuer- issuer- Returns:
- String
-