DefaultSudoIdentityVerificationClient

class DefaultSudoIdentityVerificationClient(context: Context, sudoUserClient: SudoUserClient, logger: Logger = DefaultLogger.instance, graphQLClient: GraphQLClient? = null) : SudoIdentityVerificationClient

Default implementation of the SudoIdentityVerificationClient interface.

Constructors

Link copied to clipboard
constructor(context: Context, sudoUserClient: SudoUserClient, logger: Logger = DefaultLogger.instance, graphQLClient: GraphQLClient? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val version: String

Checksums for each file are generated and are used to create a checksum that is used when publishing to maven central. In order to retry a failed publish without needing to change any functionality, we need a way to generate a different checksum for the source code. We can change the value of this property which will generate a different checksum for publishing and allow us to retry. The value of version doesn't need to be kept up-to-date with the version of the code.

Functions

Link copied to clipboard

Attempts to capture an identity document and verify identity using the information in the provided identity documents.

Link copied to clipboard
open suspend override fun checkIdentityVerification(): VerifiedIdentity

Checks the identity verification status of the currently signed in user.

open suspend override fun checkIdentityVerification(option: QueryOption): VerifiedIdentity
Link copied to clipboard
open suspend override fun isFaceImageRequired(): Boolean

Retrieves a flag indicating if face image must be submitted with identity documents.

Link copied to clipboard
open suspend override fun listSupportedCountries(): List<String>

Retrieves the list of supported countries for identity verification.

Link copied to clipboard
open override fun reset()

Reset any internal state and cached content.

Link copied to clipboard
open suspend override fun verifyIdentity(input: VerifyIdentityInput): VerifiedIdentity

Verifies an identity against the known public records and returns a result indicating whether or not the identity details provided was verified with enough confidence to grant the user access to Sudo Platform functions such as provisioning a virtual card.

Link copied to clipboard

Attempts to verify an identity based on provided identity documents.