public static final class MfaSecondFactor.Builder
extends java.lang.Object
MfaSecondFactor
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MfaSecondFactor |
build()
Builds the configured instance.
|
MfaSecondFactor.Builder |
otp(java.lang.Boolean otp)
Sets the value of
MfaSecondFactor.getOtp() |
MfaSecondFactor.Builder |
sms(java.lang.Boolean sms)
Sets the value of
MfaSecondFactor.getSms() |
public MfaSecondFactor.Builder otp(java.lang.Boolean otp)
MfaSecondFactor.getOtp()
otp
- The MFA token is a time-based one time password that is generated by a hardware or software token. This parameter is required.this
public MfaSecondFactor.Builder sms(java.lang.Boolean sms)
MfaSecondFactor.getSms()
sms
- The MFA token is sent to the user via SMS to their verified phone numbers. This parameter is required.this
public MfaSecondFactor build()
MfaSecondFactor
java.lang.NullPointerException
- if any required attribute was not provided