Package com.stytch.sdk.b2b.totp
Interface TOTP
-
- All Implemented Interfaces:
public interface TOTPThe TOTP interface provides methods for creating and authenticating TOTPs for a member
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTOTP.CreateParametersA data class wrapping the parameters needed to create a TOTP
public final classTOTP.AuthenticateParametersA data class wrapping the parameters needed to authenticate a TOTP
-
Method Summary
Modifier and Type Method Description abstract StytchResult<TOTPCreateResponseData>create(TOTP.CreateParameters parameters)Create a TOTP for a member abstract Unitcreate(TOTP.CreateParameters parameters, Function1<StytchResult<TOTPCreateResponseData>, Unit> callback)Create a TOTP for a member abstract CompletableFuture<StytchResult<TOTPCreateResponseData>>createCompletable(TOTP.CreateParameters parameters)Create a TOTP for a member abstract StytchResult<TOTPAuthenticateResponseData>authenticate(TOTP.AuthenticateParameters parameters)Authenticate a TOTP for a member abstract Unitauthenticate(TOTP.AuthenticateParameters parameters, Function1<StytchResult<TOTPAuthenticateResponseData>, Unit> callback)Create a TOTP for a member abstract CompletableFuture<StytchResult<TOTPAuthenticateResponseData>>authenticateCompletable(TOTP.AuthenticateParameters parameters)Authenticate a TOTP for a member -
-
Method Detail
-
create
abstract StytchResult<TOTPCreateResponseData> create(TOTP.CreateParameters parameters)
Create a TOTP for a member
- Parameters:
parameters- required to create a TOTP- Returns:
TOTPCreateResponse
-
create
abstract Unit create(TOTP.CreateParameters parameters, Function1<StytchResult<TOTPCreateResponseData>, Unit> callback)
Create a TOTP for a member
- Parameters:
parameters- required to create a TOTPcallback- a callback that receives a TOTPCreateResponse
-
createCompletable
abstract CompletableFuture<StytchResult<TOTPCreateResponseData>> createCompletable(TOTP.CreateParameters parameters)
Create a TOTP for a member
- Parameters:
parameters- required to create a TOTP- Returns:
TOTPCreateResponse
-
authenticate
abstract StytchResult<TOTPAuthenticateResponseData> authenticate(TOTP.AuthenticateParameters parameters)
Authenticate a TOTP for a member
- Parameters:
parameters- required to authenticate a TOTP- Returns:
TOTPAuthenticateResponse
-
authenticate
abstract Unit authenticate(TOTP.AuthenticateParameters parameters, Function1<StytchResult<TOTPAuthenticateResponseData>, Unit> callback)
Create a TOTP for a member
- Parameters:
parameters- required to authenticate a TOTPcallback- a callback that receives a TOTPAuthenticateResponse
-
authenticateCompletable
abstract CompletableFuture<StytchResult<TOTPAuthenticateResponseData>> authenticateCompletable(TOTP.AuthenticateParameters parameters)
Authenticate a TOTP for a member
- Parameters:
parameters- required to authenticate a TOTP- Returns:
TOTPAuthenticateResponse
-
-
-
-