Language

CrossDeviceAuthenticationExceptionErrorCode Enum

Definition

public enum CrossDeviceAuthenticationExceptionErrorCode
type CrossDeviceAuthenticationExceptionErrorCode = 
Inheritance
CrossDeviceAuthenticationExceptionErrorCode

Fields

Name Value Description
Unknown 0

Unknown error occurred.

Android reference for android.security.authenticationpolicy.CrossDeviceAuthenticationException.ERROR_UNKNOWN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Unauthorized 1

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.

Android reference for android.security.authenticationpolicy.CrossDeviceAuthenticationException.ERROR_UNAUTHORIZED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DecryptionFailed 2

Decryption of the payload failed.

Android reference for android.security.authenticationpolicy.CrossDeviceAuthenticationException.ERROR_DECRYPTION_FAILED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

InvalidPackage 3

The calling package is invalid or not allowlisted.

Android reference for android.security.authenticationpolicy.CrossDeviceAuthenticationException.ERROR_INVALID_PACKAGE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

InvalidTimestamp 4

The request timestamp is invalid.

Android reference for android.security.authenticationpolicy.CrossDeviceAuthenticationException.ERROR_INVALID_TIMESTAMP.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SerializationFailed 5

Serialization or deserialization of the request failed.

Android reference for android.security.authenticationpolicy.CrossDeviceAuthenticationException.ERROR_SERIALIZATION_FAILED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NotInForeground 6

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.

Android reference for android.security.authenticationpolicy.CrossDeviceAuthenticationException.ERROR_NOT_IN_FOREGROUND.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

CompanionDeviceManagerNotPresent 7

CompanionDeviceManager is not present on this device.

Android reference for android.security.authenticationpolicy.CrossDeviceAuthenticationException.ERROR_COMPANION_DEVICE_MANAGER_NOT_PRESENT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to