Language

AuthenticationPolicyManager.CreateCrossDeviceAuthenticationRequest Method

Definition

Creates a new cross-device authentication request associated with the given android.companion.CompanionDeviceManager's obfuscated remote device ID.

[Android.Runtime.Register("createCrossDeviceAuthenticationRequest", "(Ljava/util/UUID;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)]
public void CreateCrossDeviceAuthenticationRequest(Java.Util.UUID associationToken, Java.Util.Concurrent.IExecutor callbackExecutor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("createCrossDeviceAuthenticationRequest", "(Ljava/util/UUID;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)>]
member this.CreateCrossDeviceAuthenticationRequest : Java.Util.UUID * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

associationToken
UUID

the association token of the remote device where this request will be processed

callbackExecutor
IExecutor

the executor on which to invoke the callback

callback
IOutcomeReceiver

the receiver for the encrypted request on success, or an exception on failure

Attributes

Remarks

Creates a new cross-device authentication request associated with the given CompanionDeviceManager's obfuscated remote device ID. Callers typically get this ID from a companion application which uses AssociationInfo.getAssociationToken() to retrieve it along with other device information that will be shared with applications.

Use PROPERTY_CROSS_DEVICE_TRUSTED_PACKAGES if the application is known by another name on the remote device.

Use PROPERTY_CROSS_DEVICE_TRUSTED_CERTIFICATES if the application is signed with a different certificate on the remote device.

Using this API may also require meeting additional requirements, such as showing an active notification to the user while the cross-device operation is in progress. Refer to the documentation of the service that is guarded by this API for details.

Android reference for android.security.authenticationpolicy.AuthenticationPolicyManager.createCrossDeviceAuthenticationRequest.

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