Package com.vonage.client.verify
Class VerifyRequest
java.lang.Object
com.vonage.client.verify.BaseRequest
com.vonage.client.verify.VerifyRequest
- All Implemented Interfaces:
QueryParamsRequest
Describes a Verify request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder to create a Two Factor Authentication requeststatic enumEnumeration representing different verification workflows. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VerifyRequest.BuildergetBrand()getFrom()A custom PIN to send to the user.Internal method for serializing the fields of this class into query parameters.toString()Methods inherited from class com.vonage.client.verify.BaseRequest
getCountry, getDashedLocale, getLength, getLocale, getNextEventWait, getNumber, getPinExpiry
-
Constructor Details
-
VerifyRequest
-
-
Method Details
-
getBrand
- Returns:
- The name of the company or app to be verified for.
-
getFrom
- Returns:
- the short alphanumeric string to specify the SenderID for SMS sent by Verify, or
nullif one was not provided. This value is specified in someBaseRequestsub-class constructors.If this value is
null</tt>, the sender_id used will be <tt>VERIFY.
-
getWorkflow
- Returns:
- The predefined sequence of SMS and TTS (Text To Speech) actions to use in order to convey the PIN to your user.
-
getPinCode
A custom PIN to send to the user. If a PIN is not provided, Verify will generate a random PIN for you. This feature is not enabled by default - please discuss with your Account Manager if you would like it enabled.- Returns:
- The custom pin code as a string, or
nullif not set. - Since:
- 7.5.0
-
makeParams
Description copied from interface:QueryParamsRequestInternal method for serializing the fields of this class into query parameters. The Map should be mutable so that subclasses can add fields, otherwise the method or implementing class should be marked asfinal. Duplicate entries can be handled by mapping the key to a list of the entries.- Specified by:
makeParamsin interfaceQueryParamsRequest- Overrides:
makeParamsin classBaseRequest- Returns:
- The query parameters as unique key-value pairs.
-
toString
- Overrides:
toStringin classBaseRequest
-
builder
- Parameters:
number- (required) The recipient's phone number in E.164 format.brand- (required) The name of the company or app to be verified for. Must not be longer than 18 characters.- Returns:
- A new Builder to start building.
-