CrossDeviceAuthenticationException
class CrossDeviceAuthenticationException : Exception
| kotlin.Any | |||
| ↳ | kotlin.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | android.security.authenticationpolicy.CrossDeviceAuthenticationException | ||
Exception thrown when cross-device authentication fails.
Summary
| Constants | |
|---|---|
| static Int |
CompanionDeviceManager is not present on this device. |
| static Int |
Decryption of the payload failed. |
| static Int |
The calling package is invalid or not allowlisted. |
| static Int |
The request timestamp is invalid. |
| static Int |
The calling package was not visible in the foreground. |
| static Int |
Serialization or deserialization of the request failed. |
| static Int |
The request is not authorized. |
| static Int |
Unknown error occurred. |
| Public constructors | |
|---|---|
CrossDeviceAuthenticationException(errorCode: Int) |
|
CrossDeviceAuthenticationException(errorCode: Int, message: String) |
|
CrossDeviceAuthenticationException(errorCode: Int, message: String, cause: Throwable) |
|
| Public methods | |
|---|---|
| Int |
Returns the error code associated with this exception. |
Constants
ERROR_COMPANION_DEVICE_MANAGER_NOT_PRESENT
static val ERROR_COMPANION_DEVICE_MANAGER_NOT_PRESENT: Int
CompanionDeviceManager is not present on this device.
Value: 7ERROR_DECRYPTION_FAILED
static val ERROR_DECRYPTION_FAILED: Int
Decryption of the payload failed.
Value: 2ERROR_INVALID_PACKAGE
static val ERROR_INVALID_PACKAGE: Int
The calling package is invalid or not allowlisted.
Value: 3ERROR_INVALID_TIMESTAMP
static val ERROR_INVALID_TIMESTAMP: Int
The request timestamp is invalid.
Value: 4ERROR_NOT_IN_FOREGROUND
static val ERROR_NOT_IN_FOREGROUND: Int
The calling package was not visible in the foreground. Some form of foreground visibility is always required, but the exact definition of varies based on the device's form factor.
Value: 6ERROR_SERIALIZATION_FAILED
static val ERROR_SERIALIZATION_FAILED: Int
Serialization or deserialization of the request failed.
Value: 5ERROR_UNAUTHORIZED
static val ERROR_UNAUTHORIZED: Int
The request is not authorized. This error indicates that the user must take some action on the source device before the request can be fulfilled. The required conditions vary by form factor, but typically require that the has either unlocked the source device directly or has an an active connection to another trusted device. See the associated message for more details. A more specific error code from this class will be returned instead this error for common error conditions that do not vary.
Value: 1ERROR_UNKNOWN
static val ERROR_UNKNOWN: Int
Unknown error occurred.
Value: 0Public constructors
CrossDeviceAuthenticationException
CrossDeviceAuthenticationException(errorCode: Int)
| Parameters | |
|---|---|
errorCode |
Int: Value is one of the following: |
CrossDeviceAuthenticationException
CrossDeviceAuthenticationException(
errorCode: Int,
message: String)
| Parameters | |
|---|---|
errorCode |
Int: Value is one of the following: |
message |
String: This value cannot be null. |
CrossDeviceAuthenticationException
CrossDeviceAuthenticationException(
errorCode: Int,
message: String,
cause: Throwable)
| Parameters | |
|---|---|
errorCode |
Int: Value is one of the following: |
message |
String: This value cannot be null. |
cause |
Throwable: This value cannot be null. |
Public methods
getErrorCode
fun getErrorCode(): Int
Returns the error code associated with this exception.
| Return | |
|---|---|
Int |
Value is one of the following: |