public interface EmailVerificationWhitelist
add(context, token)
is called to add the
token to a whitelist. When the token is consumed (through clicking a link in an email),
validateAndRemove(context, token)
is called to a) validate that the token is still valid (has
not been used) and b) removes the token from the whitelist, thereby ensuring one-time use.
Implementations may also implement their own expiry mechanisms as needed, but this not enforced via this interface.
Modifier and Type | Method and Description |
---|---|
void |
add(Context context,
String token)
Add the token to the whitelist.
|
boolean |
validateAndRemove(Context context,
String token)
Check to see if the token is valid (still in whitelist) and remove it.
|
Copyright © 2010-2018, ForgeRock All Rights Reserved.