Package sk.iway.iwcm.system.googleauth
Class GoogleAuthenticatorConfig
java.lang.Object
sk.iway.iwcm.system.googleauth.GoogleAuthenticatorConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of digits in the generated code.int
Returns the key module.Returns the key representation.long
Returns the time step size, in milliseconds, as specified by RFC 6238.int
Returns an integer value representing the number of windows of size timeStepSizeInMillis that are checked during the validation process, to account for differences between the server and the client clocks.
-
Constructor Details
-
GoogleAuthenticatorConfig
public GoogleAuthenticatorConfig()
-
-
Method Details
-
getKeyModulus
public int getKeyModulus()Returns the key module.- Returns:
- the key module.
-
getKeyRepresentation
Returns the key representation.- Returns:
- the key representation.
-
getCodeDigits
public int getCodeDigits()Returns the number of digits in the generated code.- Returns:
- the number of digits in the generated code.
-
getTimeStepSizeInMillis
public long getTimeStepSizeInMillis()Returns the time step size, in milliseconds, as specified by RFC 6238. The default value is 30.000.- Returns:
- the time step size in milliseconds.
-
getWindowSize
public int getWindowSize()Returns an integer value representing the number of windows of size timeStepSizeInMillis that are checked during the validation process, to account for differences between the server and the client clocks. The bigger the window, the more tolerant the library code is about clock skews. We are using Google's default behaviour of using a window size equal to 3. The limit on the maximum window size, present in older versions of this library, has been removed.- Returns:
- the window size.
- See Also:
-
timeStepSizeInMillis
-