@Service public class OtpServiceImpl extends Object implements OtpService
| Constructor and Description |
|---|
OtpServiceImpl(org.molgenis.settings.AppSettings appSettings) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticatorURI(String secretKey)
Generate URI for use in authenticator apps
|
boolean |
tryVerificationCode(String verificationCode,
String secretKey)
Use TOTP algorithm to verify validity of secret and verification code.
|
public OtpServiceImpl(org.molgenis.settings.AppSettings appSettings)
public boolean tryVerificationCode(String verificationCode, String secretKey)
OtpServiceUse TOTP algorithm to verify validity of secret and verification code.
tryVerificationCode in interface OtpServiceverificationCode - given verificationCodesecretKey - generated secret keypublic String getAuthenticatorURI(String secretKey)
OtpServiceGenerate URI for use in authenticator apps
getAuthenticatorURI in interface OtpServiceCopyright © 2018 Pivotal Software, Inc.. All rights reserved.