MethodChannelCalljmpDevice class
Method channel implementation of CalljmpDevice for cross-platform device operations.
This class provides a concrete implementation of device-specific operations including Apple App Attestation and Android Play Integrity checks through Flutter's method channel communication system.
The implementation bridges Dart code with native platform implementations on iOS and Android, enabling secure device attestation and integrity verification.
Example usage:
final device = MethodChannelCalljmpDevice();
// Generate Apple attestation key
final keyId = await device.appleGenerateAttestationKey();
// Attest the key with challenge data
final result = await device.appleAttestKey(keyId, challengeData);
// Request Android integrity token
final integrityResult = await device.androidRequestIntegrityToken(
12345, // Cloud project number
challengeData,
);
- Inheritance
-
- Object
- PlatformInterface
- CalljmpDevice
- MethodChannelCalljmpDevice
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
androidRequestIntegrityToken(
int? cloudProjectNumber, String data) → Future< AndroidIntegrityResult> -
Requests an Android Play Integrity API token for app verification.
override
-
appleAttestKey(
String keyId, String data) → Future< AppleAttestationResult> -
Generates an Apple App Attestation for a given key and challenge data.
override
-
appleGenerateAttestationKey(
) → Future< String> -
Generates a new Apple App Attestation key in the device's Secure Enclave.
override
-
generateUuid(
) → Future< String> -
Generates a UUID using native platform implementation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited