public abstract class VerifyService extends Object
| Constructor and Description |
|---|
VerifyService() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
doSaveVerification(Verification verification) |
protected abstract com.appslandia.common.crypto.TextDigester |
getIdentityDigester() |
protected String |
getTokenData(String token,
String identity,
String verifyCode,
long expiresAt) |
protected abstract com.appslandia.common.crypto.PasswordDigester |
getTokenDigester() |
abstract Verification |
getVerification(String series) |
abstract void |
removeVerification(String series) |
String |
saveVerification(String token,
String identity,
String verifyCode,
long expiresInMs) |
boolean |
verify(String series,
String token,
String identity,
String verifyCode,
int expiryLeewayMs,
com.appslandia.common.base.Out<String> invalidCode) |
protected abstract com.appslandia.common.crypto.TextDigester getIdentityDigester()
protected abstract com.appslandia.common.crypto.PasswordDigester getTokenDigester()
public String saveVerification(String token, String identity, String verifyCode, long expiresInMs)
protected abstract String doSaveVerification(Verification verification)
public abstract Verification getVerification(String series)
public abstract void removeVerification(String series)
public boolean verify(String series, String token, String identity, String verifyCode, int expiryLeewayMs, com.appslandia.common.base.Out<String> invalidCode)
Copyright © 2019. All rights reserved.