Class AuthenticationData


  • public class AuthenticationData
    extends Object
    AuthenticationData
    • Constructor Detail

      • AuthenticationData

        public AuthenticationData()
    • Method Detail

      • getAuthenticationOnly

        public Boolean getAuthenticationOnly()
        If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. Default: *false**.
        Returns:
        authenticationOnly
      • setAuthenticationOnly

        public void setAuthenticationOnly​(Boolean authenticationOnly)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to AuthenticationData
      • fromJson

        public static AuthenticationData fromJson​(String jsonString)
                                           throws IOException
        Create an instance of AuthenticationData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of AuthenticationData
        Throws:
        IOException - if the JSON string is invalid with respect to AuthenticationData
      • toJson

        public String toJson()
        Convert an instance of AuthenticationData to an JSON string
        Returns:
        JSON string