CardStatus enum
Enum đại diện cho các trạng thái kết quả chính khi giao tiếp với thẻ thông minh.
Các trạng thái này được nhóm lại từ các mã lỗi chi tiết trong BC_STATUS của C#.
- Inheritance
- Available extensions
Values
- ok → const CardStatus
-
Thao tác thành công (tương đương SW1/SW2 = 9000).
- communicationError → const CardStatus
-
Lỗi chung liên quan đến giao tiếp vật lý với thẻ. (VD: mất kết nối, timeout, lỗi checksum).
- authError → const CardStatus
-
Lỗi xác thực, thường liên quan đến PIN, PUK hoặc quyền truy cập. (VD: sai PIN, hết số lần thử, khóa bị khóa).
- operationNotSupported → const CardStatus
-
Lỗi xảy ra khi thẻ không hỗ trợ một lệnh hoặc thuật toán được yêu cầu. (VD: loại khóa không được hỗ trợ, thuật toán không tồn tại).
- invalidParameters → const CardStatus
-
Lỗi khi dữ liệu hoặc tham số gửi đến thẻ không hợp lệ. (VD: độ dài dữ liệu sai, kích thước khóa không đúng).
- appletNotSelected → const CardStatus
-
Lỗi xảy ra khi không thể chọn được Applet trên thẻ. Thường do AID sai hoặc Applet không tồn tại.
- unsupportedCard → const CardStatus
-
Thẻ được phát hiện nhưng không tương thích hoặc không được hỗ trợ. (VD: không phải thẻ ISO 7816, loại thẻ không xác định).
- noCardFound → const CardStatus
-
Không có thẻ nào được phát hiện khi NFC được kích hoạt.
-
Thiết bị không hỗ trợ NFC hoặc NFC đang bị tắt.
- unknownError → const CardStatus
-
Một lỗi không xác định đã xảy ra.
Properties
- description → String
-
Available on CardStatus, provided by the CardStatusExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
CardStatus> - A constant List of the values in this enum, in order of their declaration.