diff --git a/server-spi-private/src/main/java/org/keycloak/models/utils/TimeBasedOTP.java b/server-spi-private/src/main/java/org/keycloak/models/utils/TimeBasedOTP.java index 497cb85e6f..49a1c90228 100755 --- a/server-spi-private/src/main/java/org/keycloak/models/utils/TimeBasedOTP.java +++ b/server-spi-private/src/main/java/org/keycloak/models/utils/TimeBasedOTP.java @@ -101,7 +101,7 @@ public class TimeBasedOTP extends HmacOTP { /** * maps 0, 1, 2, 3, 4, 5, 6, 7, ... to 0, -1, 1, -2, 2, -3, 3, ... */ - public static long clockSkewIndexToDelta(int idx) { + private long clockSkewIndexToDelta(int idx) { return (idx + 1) / 2 * (1 - (idx % 2) * 2); }