public class SecurityCodeService extends Object
| Constructor and Description |
|---|
SecurityCodeService(KeyValueStore<SecurityCode> store) |
| Modifier and Type | Method and Description |
|---|---|
Optional<SecurityCode> |
findByMail(String email) |
SecurityCode |
generateCode(String email) |
Set<String> |
getKeys() |
SecurityCode |
redeem(SecurityCode code) |
SecurityCode |
verify(String code) |
public SecurityCodeService(KeyValueStore<SecurityCode> store)
public SecurityCode generateCode(String email)
public SecurityCode redeem(SecurityCode code)
public SecurityCode verify(String code)
public Optional<SecurityCode> findByMail(String email)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.