public abstract class VerificationService extends Object
| Constructor and Description |
|---|
VerificationService() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
doSaveVerification(Verification verification) |
protected abstract com.appslandia.common.crypto.TextDigester |
getIdentityDigester() |
protected abstract com.appslandia.common.crypto.PasswordDigester |
getTokenDigester() |
abstract Verification |
getVerification(String verificationID) |
protected String |
getVerifyData(String token,
long expiresAtUtc,
String verifyCode) |
String |
saveVerification(String identity,
int identityType,
String token,
long expiresAtUtc,
String verifyCode) |
boolean |
verify(String verificationId,
String identity,
String token,
String verifyCode,
int expiryLeewayMs,
com.appslandia.common.base.Out<Integer> identityType,
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 identity, int identityType, String token, long expiresAtUtc, String verifyCode)
protected abstract String doSaveVerification(Verification verification)
public abstract Verification getVerification(String verificationID)
public boolean verify(String verificationId, String identity, String token, String verifyCode, int expiryLeewayMs, com.appslandia.common.base.Out<Integer> identityType, com.appslandia.common.base.Out<String> invalidCode)
Copyright © 2018. All rights reserved.