com.telesign.AutoVerifyClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telesign Show documentation
Show all versions of telesign Show documentation
The TeleSign Java SDK is a Java library that provides an interface to TeleSign Web Services. TeleSign Web Services conform to the REST Web Service Design Model. Services are exposed as URI-addressable resources through the set of RESTful procedures in our TeleSign REST API.
package com.telesign;
import java.io.IOException;
import java.net.Proxy;
import java.security.GeneralSecurityException;
import java.util.Map;
/**
* AutoVerify is a secure, lightweight SDK that integrates a frictionless user verification process into existing
* native mobile applications.
**/
public class AutoVerifyClient extends RestClient {
private static final String AUTOVERIFY_STATUS_RESOURCE = "/v1/mobile/verification/status/%s";
public AutoVerifyClient(String customerId, String secretKey) {
super(customerId, secretKey);
}
public AutoVerifyClient(String customerId, String secretKey, String apiHost) {
super(customerId, secretKey, apiHost);
}
public AutoVerifyClient(String customerId,
String secretKey,
String apiHost,
Long connectTimeout,
Long readTimeout,
Long writeTimeout,
Proxy proxy,
final String proxyUsername,
final String proxyPassword) {
super(customerId, secretKey, apiHost, connectTimeout, readTimeout, writeTimeout, proxy, proxyUsername, proxyPassword);
}
/**
* Retrieves the verification result for an AutoVerify transaction by externalId. To ensure a secure verification
* flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to
* indicate a successful verification.
*
* See https://developer.telesign.com/docs/auto-verify-sdk#section-obtaining-verification-status for detailed API
* documentation.
*/
public TelesignResponse status(String externalId, Map params) throws IOException, GeneralSecurityException {
return this.get(String.format(AUTOVERIFY_STATUS_RESOURCE, externalId), params);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy