public interface RecoveryService
| Modifier and Type | Method and Description |
|---|---|
Stream<RecoveryCode> |
generateRecoveryCodes()
Generates new recovery codes for the current user and deletes the old codes (if any).
|
Stream<RecoveryCode> |
getRecoveryCodes()
Get the recovery codes (if any) of the current user.
|
void |
useRecoveryCode(String recoveryCode)
Checks if a recovery code is valid for the current user and throws an exception if it is not.
|
Stream<RecoveryCode> generateRecoveryCodes()
void useRecoveryCode(String recoveryCode)
recoveryCode - the code to validateorg.springframework.security.authentication.BadCredentialsException - if the recovery code is incorrectStream<RecoveryCode> getRecoveryCodes()
Copyright © 2017. All rights reserved.