Class TokenAuthentication
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.TokenAuthentication
-
public class TokenAuthentication extends Object
TokenAuthentication
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_METHODstatic StringJSON_PROPERTY_RESULT
-
Constructor Summary
Constructors Constructor Description TokenAuthentication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this TokenAuthentication object is equal to o.static TokenAuthenticationfromJson(String jsonString)Create an instance of TokenAuthentication given an JSON stringStringgetMethod()The method used to complete the authentication process.StringgetResult()The result of the authentication process.inthashCode()TokenAuthenticationmethod(String method)The method used to complete the authentication process.TokenAuthenticationresult(String result)The result of the authentication process.voidsetMethod(String method)The method used to complete the authentication process.voidsetResult(String result)The result of the authentication process.StringtoJson()Convert an instance of TokenAuthentication to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_METHOD
public static final String JSON_PROPERTY_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESULT
public static final String JSON_PROPERTY_RESULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
method
public TokenAuthentication method(String method)
The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**.- Parameters:
method- The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**.- Returns:
- the current
TokenAuthenticationinstance, allowing for method chaining
-
getMethod
public String getMethod()
The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**.- Returns:
- method The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**.
-
setMethod
public void setMethod(String method)
The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**.- Parameters:
method- The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**.
-
result
public TokenAuthentication result(String result)
The result of the authentication process.- Parameters:
result- The result of the authentication process.- Returns:
- the current
TokenAuthenticationinstance, allowing for method chaining
-
getResult
public String getResult()
The result of the authentication process.- Returns:
- result The result of the authentication process.
-
setResult
public void setResult(String result)
The result of the authentication process.- Parameters:
result- The result of the authentication process.
-
equals
public boolean equals(Object o)
Return true if this TokenAuthentication object is equal to o.
-
fromJson
public static TokenAuthentication fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TokenAuthentication given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TokenAuthentication
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TokenAuthentication
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TokenAuthentication to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-