BiometricPrompt.CryptoObject.OperationHandle Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the operationHandle
associated with this object or 0 if none.
public long OperationHandle { [Android.Runtime.Register("getOperationHandle", "()J", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getOperationHandle", "()J", "", ApiSince=35)>]
member this.OperationHandle : int64
Property Value
- Attributes
Remarks
Returns the operationHandle
associated with this object or 0 if none. The operationHandle
is the underlying identifier associated with the CryptoObject
.
The operationHandle
can be used to reconstruct a CryptoObject
instance. This is useful for any cross-process communication as the CryptoObject
class is not android.os.Parcelable
. Hence, if the CryptoObject
is constructed in one process, and needs to be propagated to another process, before calling the BiometricPrompt#authenticate(CryptoObject, CancellationSignal, Executor, AuthenticationCallback)
API in the second process, the recommendation is to retrieve the operationHandle
using this API, and then reconstruct the CryptoObject
using the constructor that takes in an operationHandle
, and pass that in to the authenticate
API mentioned above.
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.