Class TwoFactorVerifyRequestSchema


  • public class TwoFactorVerifyRequestSchema
    extends Object
    This is a model class for TwoFactorVerifyRequestSchema type.
    • Constructor Detail

      • TwoFactorVerifyRequestSchema

        public TwoFactorVerifyRequestSchema()
        Default constructor.
      • TwoFactorVerifyRequestSchema

        public TwoFactorVerifyRequestSchema​(String to,
                                            String applicationId,
                                            double expirationTimeInMinutes,
                                            String code,
                                            String scope)
        Initialization constructor.
        Parameters:
        to - String value for to.
        applicationId - String value for applicationId.
        expirationTimeInMinutes - double value for expirationTimeInMinutes.
        code - String value for code.
        scope - String value for scope.
    • Method Detail

      • getTo

        public String getTo()
        Getter for To. The phone number to send the 2fa code to.
        Returns:
        Returns the String
      • setTo

        public void setTo​(String to)
        Setter for To. The phone number to send the 2fa code to.
        Parameters:
        to - Value for String
      • getApplicationId

        public String getApplicationId()
        Getter for ApplicationId. The application unique ID, obtained from Bandwidth.
        Returns:
        Returns the String
      • setApplicationId

        public void setApplicationId​(String applicationId)
        Setter for ApplicationId. The application unique ID, obtained from Bandwidth.
        Parameters:
        applicationId - Value for String
      • getScope

        public String getScope()
        Getter for Scope. An optional field to denote what scope or action the 2fa code is addressing. If not supplied, defaults to "2FA".
        Returns:
        Returns the String
      • setScope

        public void setScope​(String scope)
        Setter for Scope. An optional field to denote what scope or action the 2fa code is addressing. If not supplied, defaults to "2FA".
        Parameters:
        scope - Value for String
      • getExpirationTimeInMinutes

        public double getExpirationTimeInMinutes()
        Getter for ExpirationTimeInMinutes. The time period, in minutes, to validate the 2fa code. By setting this to 3 minutes, it will mean any code generated within the last 3 minutes are still valid. The valid range for expiration time is between 0 and 15 minutes, exclusively and inclusively, respectively.
        Returns:
        Returns the double
      • setExpirationTimeInMinutes

        public void setExpirationTimeInMinutes​(double expirationTimeInMinutes)
        Setter for ExpirationTimeInMinutes. The time period, in minutes, to validate the 2fa code. By setting this to 3 minutes, it will mean any code generated within the last 3 minutes are still valid. The valid range for expiration time is between 0 and 15 minutes, exclusively and inclusively, respectively.
        Parameters:
        expirationTimeInMinutes - Value for double
      • getCode

        public String getCode()
        Getter for Code. The generated 2fa code to check if valid
        Returns:
        Returns the String
      • setCode

        public void setCode​(String code)
        Setter for Code. The generated 2fa code to check if valid
        Parameters:
        code - Value for String
      • toString

        public String toString()
        Converts this TwoFactorVerifyRequestSchema into string format.
        Overrides:
        toString in class Object
        Returns:
        String representation of this class