Class MfaTempTokenResponse
- java.lang.Object
-
- de.xima.fc.api.rest.pub.client.security.model.MfaTempTokenResponse
-
- All Implemented Interfaces:
Serializable
@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator") public class MfaTempTokenResponse extends Object implements SerializableModel representing a response indicating that two-factor authentication is required.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EXPIRES_INstatic StringJSON_PROPERTY_MESSAGEstatic StringJSON_PROPERTY_MFA_TYPEstatic StringJSON_PROPERTY_TEMP_TOKEN
-
Constructor Summary
Constructors Constructor Description MfaTempTokenResponse()Creates a new empty model with no data yet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)MfaTempTokenResponseexpiresIn(Long expiresIn)Creates a new model with the given enum and no other data.LonggetExpiresIn()The time in seconds until the temporary token expires.StringgetMessage()Message to be displayed to the user, e.g., instructions for two-factor authentication.StringgetMfaType()The type of multi-factor authentication required.StringgetTempToken()Temporary token to be used for two-factor authentication.inthashCode()MfaTempTokenResponsemessage(String message)Creates a new model with the given enum and no other data.MfaTempTokenResponsemfaType(String mfaType)Creates a new model with the given enum and no other data.voidsetExpiresIn(Long expiresIn)voidsetMessage(String message)voidsetMfaType(String mfaType)voidsetTempToken(String tempToken)MfaTempTokenResponsetempToken(String tempToken)Creates a new model with the given enum and no other data.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_EXPIRES_IN
public static final String JSON_PROPERTY_EXPIRES_IN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MESSAGE
public static final String JSON_PROPERTY_MESSAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MFA_TYPE
public static final String JSON_PROPERTY_MFA_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TEMP_TOKEN
public static final String JSON_PROPERTY_TEMP_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
expiresIn
public MfaTempTokenResponse expiresIn(Long expiresIn)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getExpiresIn
@Nullable public Long getExpiresIn()
The time in seconds until the temporary token expires.- Returns:
- expiresIn
-
setExpiresIn
public void setExpiresIn(Long expiresIn)
-
message
public MfaTempTokenResponse message(String message)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getMessage
@Nullable public String getMessage()
Message to be displayed to the user, e.g., instructions for two-factor authentication.- Returns:
- message
-
setMessage
public void setMessage(String message)
-
mfaType
public MfaTempTokenResponse mfaType(String mfaType)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getMfaType
@Nullable public String getMfaType()
The type of multi-factor authentication required.- Returns:
- mfaType
-
setMfaType
public void setMfaType(String mfaType)
-
tempToken
public MfaTempTokenResponse tempToken(String tempToken)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getTempToken
@Nullable public String getTempToken()
Temporary token to be used for two-factor authentication.- Returns:
- tempToken
-
setTempToken
public void setTempToken(String tempToken)
-
-