@RefreshScope @Component public class OtpManagerUtils extends Object
| Constructor and Description |
|---|
OtpManagerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.time.LocalDateTime |
getCurrentLocalDateTime()
This method returns the current LocalDateTime.
|
static int |
timeDifferenceInSeconds(java.time.LocalDateTime fromDateTime,
java.time.LocalDateTime toDateTime)
This method returns the difference between two LocalDateTime objects in
seconds.
|
void |
validateOtpRequestArguments(String key,
String otp)
This method validates the input arguments provided for validation.
|
public static int timeDifferenceInSeconds(java.time.LocalDateTime fromDateTime,
java.time.LocalDateTime toDateTime)
fromDateTime - The time from which the difference needs to be
calculated.toDateTime - The time till which the difference needs to be
calculated.public static java.time.LocalDateTime getCurrentLocalDateTime()
Copyright © 2020. All rights reserved.