Package com.android.identity
Class Constants
- java.lang.Object
-
- com.android.identity.Constants
-
public class Constants extends java.lang.ObjectVarious constants used by other classes.
-
-
Field Summary
Fields Modifier and Type Field Description static intBLE_DATA_RETRIEVAL_CLEAR_CACHEFlag indicating that BLE Services Cache should be cleared before service discovery when acting as a GATT Client.static intBLE_DATA_RETRIEVAL_OPTION_L2CAPFlag indicating that L2CAP should be used for data retrieval if available and supported.static intBLE_DATA_RETRIEVAL_OPTION_MDOC_CENTRAL_CLIENT_MODEFlag indicating that the mdoc central client mode should be supported for BLE data retrieval.static intBLE_DATA_RETRIEVAL_OPTION_MDOC_PERIPHERAL_SERVER_MODEFlag indicating that the mdoc peripheral server mode should be supported for BLE data retrieval.static longDEVICE_RESPONSE_STATUS_CBOR_DECODING_ERRORThe mdoc indicates an error during CBOR decoding that the data received is not valid CBOR.static longDEVICE_RESPONSE_STATUS_CBOR_VALIDATION_ERRORThe mdoc indicates an error during CBOR validation, e.g.static longDEVICE_RESPONSE_STATUS_GENERAL_ERRORThe mdoc returns an error without any given reason.static longDEVICE_RESPONSE_STATUS_OKNormal processing.static longSESSION_DATA_STATUS_ERROR_CBOR_DECODINGError: CBOR decoding.static longSESSION_DATA_STATUS_ERROR_SESSION_ENCRYPTIONError: session encryption.static longSESSION_DATA_STATUS_SESSION_TERMINATIONSession termination.
-
Constructor Summary
Constructors Constructor Description Constants()
-
-
-
Field Detail
-
DEVICE_RESPONSE_STATUS_OK
public static final long DEVICE_RESPONSE_STATUS_OK
Normal processing. This status message shall be returned if no other status is returned.This value is defined in ISO/IEC 18013-5 Table 8.
- See Also:
- Constant Field Values
-
DEVICE_RESPONSE_STATUS_GENERAL_ERROR
public static final long DEVICE_RESPONSE_STATUS_GENERAL_ERROR
The mdoc returns an error without any given reason. No data is returned.This value is defined in ISO/IEC 18013-5 Table 8.
- See Also:
- Constant Field Values
-
DEVICE_RESPONSE_STATUS_CBOR_DECODING_ERROR
public static final long DEVICE_RESPONSE_STATUS_CBOR_DECODING_ERROR
The mdoc indicates an error during CBOR decoding that the data received is not valid CBOR. Returning this status code is optional.This value is defined in ISO/IEC 18013-5 Table 8.
- See Also:
- Constant Field Values
-
DEVICE_RESPONSE_STATUS_CBOR_VALIDATION_ERROR
public static final long DEVICE_RESPONSE_STATUS_CBOR_VALIDATION_ERROR
The mdoc indicates an error during CBOR validation, e.g. wrong CBOR structures. Returning this status code is optional.This value is defined in ISO/IEC 18013-5 Table 8.
- See Also:
- Constant Field Values
-
BLE_DATA_RETRIEVAL_OPTION_MDOC_CENTRAL_CLIENT_MODE
public static final int BLE_DATA_RETRIEVAL_OPTION_MDOC_CENTRAL_CLIENT_MODE
Flag indicating that the mdoc central client mode should be supported for BLE data retrieval.- See Also:
- Constant Field Values
-
BLE_DATA_RETRIEVAL_OPTION_MDOC_PERIPHERAL_SERVER_MODE
public static final int BLE_DATA_RETRIEVAL_OPTION_MDOC_PERIPHERAL_SERVER_MODE
Flag indicating that the mdoc peripheral server mode should be supported for BLE data retrieval.- See Also:
- Constant Field Values
-
BLE_DATA_RETRIEVAL_OPTION_L2CAP
public static final int BLE_DATA_RETRIEVAL_OPTION_L2CAP
Flag indicating that L2CAP should be used for data retrieval if available and supported.- See Also:
- Constant Field Values
-
BLE_DATA_RETRIEVAL_CLEAR_CACHE
public static final int BLE_DATA_RETRIEVAL_CLEAR_CACHE
Flag indicating that BLE Services Cache should be cleared before service discovery when acting as a GATT Client.- See Also:
- Constant Field Values
-
SESSION_DATA_STATUS_ERROR_SESSION_ENCRYPTION
public static final long SESSION_DATA_STATUS_ERROR_SESSION_ENCRYPTION
Error: session encryption. The session shall be terminated.This value is defined in ISO/IEC 18013-5 Table 20.
- See Also:
- Constant Field Values
-
SESSION_DATA_STATUS_ERROR_CBOR_DECODING
public static final long SESSION_DATA_STATUS_ERROR_CBOR_DECODING
Error: CBOR decoding. The session shall be terminated.This value is defined in ISO/IEC 18013-5 Table 20.
- See Also:
- Constant Field Values
-
SESSION_DATA_STATUS_SESSION_TERMINATION
public static final long SESSION_DATA_STATUS_SESSION_TERMINATION
Session termination. The session shall be terminated.This value is defined in ISO/IEC 18013-5 Table 20.
- See Also:
- Constant Field Values
-
-