KeyInfo class
Detailed information about existing biometric keys.
Constructors
-
KeyInfo({bool? exists, bool? isValid, String? algorithm, int? keySize, bool? isHybridMode, String? publicKey, String? decryptingPublicKey, String? decryptingAlgorithm, int? decryptingKeySize, List<
Uint8List> ? attestationCertificateChain, KeySecurityLevel? securityLevel, bool? requiresAuthentication, bool? invalidatedByBiometricEnrollment, bool? allowsDeviceCredentials})
Properties
- algorithm ↔ String?
-
The algorithm of the signing key (e.g., "RSA", "EC").
getter/setter pair
- allowsDeviceCredentials ↔ bool?
-
Whether the device PIN, pattern, password or passcode can unlock the
key, besides a biometric.
getter/setter pair
-
attestationCertificateChain
↔ List<
Uint8List> ? -
AndroidDER-encoded X.509 key attestation certificate chain of the signing key, leaf first.getter/setter pair - decryptingAlgorithm ↔ String?
-
Algorithm of the decryption key (hybrid mode only).
getter/setter pair
- decryptingKeySize ↔ int?
-
Key size of the decryption key in bits (hybrid mode only).
getter/setter pair
- decryptingPublicKey ↔ String?
-
Decryption key public key for hybrid mode.
getter/setter pair
- exists ↔ bool?
-
Whether any biometric key exists on the device.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- invalidatedByBiometricEnrollment ↔ bool?
-
Whether enrolling or removing a fingerprint or face permanently
invalidates the key.
getter/setter pair
- isHybridMode ↔ bool?
-
Whether the key is in hybrid mode (separate signing and decryption keys).
getter/setter pair
- isValid ↔ bool?
-
Whether the key is still valid (not invalidated by biometric changes).
Only populated when
checkValidity: trueis passed.getter/setter pair - keySize ↔ int?
-
The key size in bits (e.g., 2048 for RSA, 256 for EC).
getter/setter pair
- publicKey ↔ String?
-
Signing key public key (formatted according to the requested format).
getter/setter pair
- requiresAuthentication ↔ bool?
-
Whether signing and decryption require user authentication.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- securityLevel ↔ KeySecurityLevel?
-
Where the signing key is stored and used. See KeySecurityLevel.
getter/setter pair
Methods
-
encode(
) → Object -
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.
override