ShareGuardResult

sealed interface ShareGuardResult

Outcome of a ShareGuard check.

Inheritors

Types

Link copied to clipboard

The holder backed out of the check. Reported like a declined consent.

Link copied to clipboard
data class Failed(val message: String, val reason: ShareGuardResult.Failed.Reason = Reason.NOT_VERIFIED) : ShareGuardResult

The check did not pass. Reason.NOT_VERIFIED → the person could not be confirmed (com.wallet.model.SdkError.Kind.FACE_CHECK_FAILED); Reason.UNAVAILABLE → the check could not run at all, e.g. no usable photo or no camera (com.wallet.model.SdkError.Kind.FACE_CHECK_UNAVAILABLE).

Link copied to clipboard
data object Pass : ShareGuardResult

The check passed; the credential is shared.