Class TokenAuthentication


  • public class TokenAuthentication
    extends Object
    TokenAuthentication
    • Constructor Detail

      • TokenAuthentication

        public TokenAuthentication()
    • 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 TokenAuthentication instance, 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 TokenAuthentication instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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