TOTP
interface TOTP
The TOTP interface provides methods for creating and authenticating TOTPs for a member
Types
Link copied to clipboard
data class AuthenticateParameters @JvmOverloads constructor(val organizationId: String, val memberId: String, val code: String, val setMFAEnrollment: SetMFAEnrollment? = null, val setDefaultMFAMethod: Boolean? = null, val sessionDurationMinutes: Int = DEFAULT_SESSION_TIME_MINUTES)
A data class wrapping the parameters needed to authenticate a TOTP
Link copied to clipboard
data class CreateParameters @JvmOverloads constructor(val organizationId: String, val memberId: String, val expirationMinutes: Int? = null)
A data class wrapping the parameters needed to create a TOTP
Functions
Link copied to clipboard
abstract suspend fun authenticate(parameters: TOTP.AuthenticateParameters): TOTPAuthenticateResponse
Authenticate a TOTP for a member
abstract fun authenticate(parameters: TOTP.AuthenticateParameters, callback: (TOTPAuthenticateResponse) -> Unit)
Create a TOTP for a member
Link copied to clipboard
abstract fun authenticateCompletable(parameters: TOTP.AuthenticateParameters): CompletableFuture<TOTPAuthenticateResponse>
Authenticate a TOTP for a member
Link copied to clipboard
Create a TOTP for a member
Link copied to clipboard
abstract fun createCompletable(parameters: TOTP.CreateParameters): CompletableFuture<TOTPCreateResponse>
Create a TOTP for a member