Package com.stytch.sdk.b2b.otp
Class OTP.Email.AuthenticateParameters
-
- All Implemented Interfaces:
public final class OTP.Email.AuthenticateParametersA data class wrapping the parameters needed to authenticate an Email OTP
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringcodeprivate final StringorganizationIdprivate final StringemailAddressprivate final Localelocaleprivate final IntegersessionDurationMinutes
-
Constructor Summary
Constructors Constructor Description OTP.Email.AuthenticateParameters(String code, String organizationId, String emailAddress, Locale locale, Integer sessionDurationMinutes)OTP.Email.AuthenticateParameters(String code, String organizationId, String emailAddress, Locale locale)OTP.Email.AuthenticateParameters(String code, String organizationId, String emailAddress)
-
Method Summary
Modifier and Type Method Description final StringgetCode()The code to authenticate final StringgetOrganizationId()The ID of the organization the member belongs to final StringgetEmailAddress()The email address of the member final LocalegetLocale()The locale is used to determine which language to use in the email. final IntegergetSessionDurationMinutes()indicates how long the session should last before it expires -
-
Constructor Detail
-
OTP.Email.AuthenticateParameters
OTP.Email.AuthenticateParameters(String code, String organizationId, String emailAddress, Locale locale, Integer sessionDurationMinutes)
-
OTP.Email.AuthenticateParameters
OTP.Email.AuthenticateParameters(String code, String organizationId, String emailAddress, Locale locale)
-
-
Method Detail
-
getOrganizationId
final String getOrganizationId()
The ID of the organization the member belongs to
-
getEmailAddress
final String getEmailAddress()
The email address of the member
-
getLocale
final Locale getLocale()
The locale is used to determine which language to use in the email. Parameter is a []IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. "en". Currently supported languages are English ("en"), Spanish ("es"), and Brazilian Portuguese ("pt-br"); if no value is provided, the copy defaults to English.
-
getSessionDurationMinutes
final Integer getSessionDurationMinutes()
indicates how long the session should last before it expires
-
-
-
-