Share via


BlobStoreManager.Session.AllowPackageAccess(String, Byte[]) Method

Definition

Allow packageName with a particular signing certificate to access this blob data once it is committed using a BlobHandle representing the blob.

[Android.Runtime.Register("allowPackageAccess", "(Ljava/lang/String;[B)V", "GetAllowPackageAccess_Ljava_lang_String_arrayBHandler", ApiSince=30)]
public virtual void AllowPackageAccess (string packageName, byte[] certificate);
[<Android.Runtime.Register("allowPackageAccess", "(Ljava/lang/String;[B)V", "GetAllowPackageAccess_Ljava_lang_String_arrayBHandler", ApiSince=30)>]
abstract member AllowPackageAccess : string * byte[] -> unit
override this.AllowPackageAccess : string * byte[] -> unit

Parameters

packageName
String

the name of the package which should be allowed to access the blob.

certificate
Byte[]

the input bytes representing a certificate of type android.content.pm.PackageManager#CERT_INPUT_SHA256.

Attributes

Remarks

Allow packageName with a particular signing certificate to access this blob data once it is committed using a BlobHandle representing the blob.

This needs to be called before committing the blob using #commit(Executor, Consumer).

Java documentation for android.app.blob.BlobStoreManager.Session.allowPackageAccess(java.lang.String, byte[]).

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