Package sh.ory.model
Class SubmitSelfServiceSettingsFlowWithTotpMethodBody
java.lang.Object
sh.ory.model.SubmitSelfServiceSettingsFlowWithTotpMethodBody
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-04-19T11:31:27.587817519Z[Etc/UTC]") public class SubmitSelfServiceSettingsFlowWithTotpMethodBody extends Object
SubmitSelfServiceSettingsFlowWithTotpMethodBody
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CSRF_TOKENstatic StringSERIALIZED_NAME_METHODstatic StringSERIALIZED_NAME_TOTP_CODEstatic StringSERIALIZED_NAME_TOTP_UNLINK -
Constructor Summary
Constructors Constructor Description SubmitSelfServiceSettingsFlowWithTotpMethodBody() -
Method Summary
Modifier and Type Method Description SubmitSelfServiceSettingsFlowWithTotpMethodBodycsrfToken(String csrfToken)booleanequals(Object o)StringgetCsrfToken()CSRFToken is the anti-CSRF tokenStringgetMethod()Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing.StringgetTotpCode()ValidationTOTP must contain a valid TOTP based on theBooleangetTotpUnlink()UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential.inthashCode()SubmitSelfServiceSettingsFlowWithTotpMethodBodymethod(String method)voidsetCsrfToken(String csrfToken)voidsetMethod(String method)voidsetTotpCode(String totpCode)voidsetTotpUnlink(Boolean totpUnlink)StringtoString()SubmitSelfServiceSettingsFlowWithTotpMethodBodytotpCode(String totpCode)SubmitSelfServiceSettingsFlowWithTotpMethodBodytotpUnlink(Boolean totpUnlink)
-
Field Details
-
SERIALIZED_NAME_CSRF_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METHOD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTP_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTP_UNLINK
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SubmitSelfServiceSettingsFlowWithTotpMethodBody
public SubmitSelfServiceSettingsFlowWithTotpMethodBody()
-
-
Method Details
-
csrfToken
-
getCsrfToken
CSRFToken is the anti-CSRF token- Returns:
- csrfToken
-
setCsrfToken
-
method
-
getMethod
Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing.- Returns:
- method
-
setMethod
-
totpCode
-
getTotpCode
ValidationTOTP must contain a valid TOTP based on the- Returns:
- totpCode
-
setTotpCode
-
totpUnlink
-
getTotpUnlink
UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device.- Returns:
- totpUnlink
-
setTotpUnlink
-
equals
-
hashCode
public int hashCode() -
toString
-