BlobHandle.CreateWithSha256 Method

Definition

Overloads

CreateWithSha256(Byte[], ICharSequence, Int64, String)

Create a new blob identifier.

CreateWithSha256(Byte[], String, Int64, String)

Create a new blob identifier.

CreateWithSha256(Byte[], ICharSequence, Int64, String)

Create a new blob identifier.

[Android.Runtime.Register("createWithSha256", "([BLjava/lang/CharSequence;JLjava/lang/String;)Landroid/app/blob/BlobHandle;", "", ApiSince=30)]
public static Android.App.Blob.BlobHandle CreateWithSha256 (byte[] digest, Java.Lang.ICharSequence label, long expiryTimeMillis, string tag);
[<Android.Runtime.Register("createWithSha256", "([BLjava/lang/CharSequence;JLjava/lang/String;)Landroid/app/blob/BlobHandle;", "", ApiSince=30)>]
static member CreateWithSha256 : byte[] * Java.Lang.ICharSequence * int64 * string -> Android.App.Blob.BlobHandle

Parameters

digest
Byte[]

the SHA-256 hash of the blob this is representing.

label
ICharSequence

a label indicating what the blob is, that can be surfaced to the user. The length of the label cannot be more than 100 characters. It is recommended to keep this brief. This may be truncated and ellipsized if it is too long to be displayed to the user.

expiryTimeMillis
Int64

the time in secs after which the blob should be invalidated and not allowed to be accessed by any other app, in System#currentTimeMillis() timebase or 0 to indicate that there is no expiry time associated with this blob.

tag
String

an opaque String associated with the blob. The length of the tag cannot be more than 128 characters.

Returns

a new instance of BlobHandle object.

Attributes

Remarks

Create a new blob identifier.

For two objects of BlobHandle to be considered equal, the following arguments must be equal: <ul> <li> digest<li> label<li> expiryTimeMillis<li> tag</ul>

Java documentation for android.app.blob.BlobHandle.createWithSha256(byte[], java.lang.CharSequence, long, java.lang.String).

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

CreateWithSha256(Byte[], String, Int64, String)

Create a new blob identifier.

public static Android.App.Blob.BlobHandle CreateWithSha256 (byte[] digest, string label, long expiryTimeMillis, string tag);
static member CreateWithSha256 : byte[] * string * int64 * string -> Android.App.Blob.BlobHandle

Parameters

digest
Byte[]

the SHA-256 hash of the blob this is representing.

label
String

a label indicating what the blob is, that can be surfaced to the user. The length of the label cannot be more than 100 characters. It is recommended to keep this brief. This may be truncated and ellipsized if it is too long to be displayed to the user.

expiryTimeMillis
Int64

the time in secs after which the blob should be invalidated and not allowed to be accessed by any other app, in System#currentTimeMillis() timebase or 0 to indicate that there is no expiry time associated with this blob.

tag
String

an opaque String associated with the blob. The length of the tag cannot be more than 128 characters.

Returns

a new instance of BlobHandle object.

Remarks

Create a new blob identifier.

For two objects of BlobHandle to be considered equal, the following arguments must be equal: <ul> <li> digest<li> label<li> expiryTimeMillis<li> tag</ul>

Java documentation for android.app.blob.BlobHandle.createWithSha256(byte[], java.lang.CharSequence, long, java.lang.String).

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