Class Authentication
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.Authentication
-
public class Authentication extends Object
Authentication
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_PASSWORDstatic StringJSON_PROPERTY_PHONE
-
Constructor Summary
Constructors Constructor Description Authentication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Authenticationemail(String email)booleanequals(Object o)Return true if this Authentication object is equal to o.static AuthenticationfromJson(String jsonString)Create an instance of Authentication given an JSON stringStringgetEmail()The email address where the one-time password (OTP) is sent.StringgetPassword()The password used for 3D Secure password-based authentication.PhonegetPhone()Get phoneinthashCode()Authenticationpassword(String password)Authenticationphone(Phone phone)voidsetEmail(String email)The email address where the one-time password (OTP) is sent.voidsetPassword(String password)The password used for 3D Secure password-based authentication.voidsetPhone(Phone phone)phoneStringtoJson()Convert an instance of Authentication to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_EMAIL
public static final String JSON_PROPERTY_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASSWORD
public static final String JSON_PROPERTY_PASSWORD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE
public static final String JSON_PROPERTY_PHONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
email
public Authentication email(String email)
-
getEmail
public String getEmail()
The email address where the one-time password (OTP) is sent.- Returns:
-
setEmail
public void setEmail(String email)
The email address where the one-time password (OTP) is sent.- Parameters:
email-
-
password
public Authentication password(String password)
-
getPassword
public String getPassword()
The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó**- Returns:
- password
-
setPassword
public void setPassword(String password)
The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó**- Parameters:
password-
-
phone
public Authentication phone(Phone phone)
-
getPhone
public Phone getPhone()
Get phone- Returns:
- phone
-
setPhone
public void setPhone(Phone phone)
phone- Parameters:
phone-
-
equals
public boolean equals(Object o)
Return true if this Authentication object is equal to o.
-
fromJson
public static Authentication fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Authentication given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Authentication
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Authentication
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Authentication to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-