Package-level declarations

Types

Link copied to clipboard

Pairs an Apple AppAttest assertion with the referenced clientData value

Link copied to clipboard

Provides additional details on why an attestation attempt failed, indicating which platform was being attested. Although many reasons exist why an attestation may fail, all of them can be put into two categories:

Link copied to clipboard
data class AttestationObject(val fmt: String, val attStmt: AttestationObject.AttestationStatement, val authData: ByteArray)
Link copied to clipboard
sealed class AttestationResult

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

Link copied to clipboard
abstract class AttestationService
Link copied to clipboard

iOS build number. As per TidBITS.com:

Link copied to clipboard
class FixedTimeClock(epochMilliseconds: Long) : Clock
Link copied to clipboard
class InstantLongSerializer : KSerializer<Instant>
Link copied to clipboard
@Serializable
data class IosAttestationConfiguration @JvmOverloads constructor(val applications: List<IosAttestationConfiguration.AppData>, val iosVersion: IosAttestationConfiguration.OsVersions? = null, val attestationStatementValiditySeconds: Long = 5 * 60)

Configuration class for Apple App Attestation

Link copied to clipboard
class IosAttestationException(msg: String? = null, cause: Throwable? = null, val reason: IosAttestationException.Reason) : Throwable
Link copied to clipboard
data class KeyAttestation<T : PublicKey>

Result type returned by AttestationService.verifyKeyAttestation. attestedPublicKey contains an attested public key if attestation was successful (null otherwise) details contains the detailed attestation result (see AttestationResult for more details)

Link copied to clipboard
typealias Makoto = Warden
Link copied to clipboard

NOOP attestation service. Useful during unit tests for disabling attestation integrated into service endpoints. Simply forwards inputs but performs no attestation whatsoever.

Link copied to clipboard
typealias ParsedVersions = Pair<SemVer?, BuildNumber?>
Link copied to clipboard

Indicated the platform an attestation check failed for.

Link copied to clipboard
class Warden(androidAttestationConfiguration: AndroidAttestationConfiguration, iosAttestationConfiguration: IosAttestationConfiguration, clock: <Error class: unknown class> = Clock.System, verificationTimeOffset: Duration = Duration.ZERO) : AttestationService

Default, functional Android and Apple App and Key Attestation in all its glory.

Link copied to clipboard
@Serializable
data class WardenDebugAttestationStatement

Functions

Link copied to clipboard
Link copied to clipboard