AttestationResult

Attestation result class. Successful results contain attested data. Typically contained within a KeyAttestation object.

Inheritors

Types

Link copied to clipboard
abstract class Android(val attestationCertificateChain: List<X509Certificate>) : AttestationResult

Successful Android Key Attestation result. attestationCertificateChain contains the attested certificate.

Link copied to clipboard
class Error(val explanation: String, val cause: AttestationException? = null) : AttestationResult
Link copied to clipboard
abstract class IOS(val clientData: ByteArray?) : AttestationResult

Successful iOS attestation. If AttestationService.verifyKeyAttestation returned this, clientData contains the encoded attested public key. The Warden, returns IOS.Verified, also setting IOS.Verified.attestation. The NoopAttestationService returns IOS.NOOP (which is useful to as it enables skipping any and all attestation checks for unit testing, when used with dependency injection, for example).

Link copied to clipboard
sealed interface Verified

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String