Package com.stytch.sdk.ui.b2c.data
Class OTPOptions
-
- All Implemented Interfaces:
-
android.os.Parcelable
@JsonClass(generateAdapter = true) public final class OTPOptions implements Parcelable
A data class representing options for configuring the OTP product
-
-
Field Summary
Fields Modifier and Type Field Description private final List<OTPMethods>methodsprivate final IntegerexpirationMinutesprivate final StringloginTemplateIdprivate final StringsignupTemplateId
-
Constructor Summary
Constructors Constructor Description OTPOptions(List<OTPMethods> methods, Integer expirationMinutes, String loginTemplateId, String signupTemplateId)OTPOptions(List<OTPMethods> methods, Integer expirationMinutes, String loginTemplateId)OTPOptions(List<OTPMethods> methods, Integer expirationMinutes)OTPOptions(List<OTPMethods> methods)OTPOptions()
-
Method Summary
Modifier and Type Method Description final List<OTPMethods>getMethods()A list of OTPMethods that you would like to enable final IntegergetExpirationMinutes()The number of minutes that an OTP code is valid for. final StringgetLoginTemplateId()The ID of an OTP template (defined in the Stytch Dashboard) for login requests final StringgetSignupTemplateId()The ID of an OTP template (defined in the Stytch Dashboard) for signup requests -
-
Constructor Detail
-
OTPOptions
OTPOptions(List<OTPMethods> methods, Integer expirationMinutes, String loginTemplateId, String signupTemplateId)
-
OTPOptions
OTPOptions(List<OTPMethods> methods, Integer expirationMinutes, String loginTemplateId)
-
OTPOptions
OTPOptions(List<OTPMethods> methods, Integer expirationMinutes)
-
OTPOptions
OTPOptions(List<OTPMethods> methods)
-
OTPOptions
OTPOptions()
-
-
Method Detail
-
getMethods
final List<OTPMethods> getMethods()
A list of OTPMethods that you would like to enable
-
getExpirationMinutes
final Integer getExpirationMinutes()
The number of minutes that an OTP code is valid for. Defaults to 10
-
getLoginTemplateId
final String getLoginTemplateId()
The ID of an OTP template (defined in the Stytch Dashboard) for login requests
-
getSignupTemplateId
final String getSignupTemplateId()
The ID of an OTP template (defined in the Stytch Dashboard) for signup requests
-
-
-
-