共用方式為


MessageDigestUtils Class

  • java.lang.Object
    • com.azure.core.test.utils.MessageDigestUtils

public final class MessageDigestUtils

Utilities to compute hashes in tests.

Method Summary

Modifier and Type Method and Description
static String md5(byte[] bytes)

Returns base64 encoded MD5 of bytes.

static Mono<String> md5(Flux<ByteBuffer> bufferFlux)

Returns base64 encoded MD5 of flux of byte buffers.

Methods inherited from java.lang.Object

Method Details

md5

public static String md5(byte[] bytes)

Returns base64 encoded MD5 of bytes.

Parameters:

bytes - bytes.

Returns:

base64 encoded MD5 of bytes.

md5

public static Mono md5(Flux bufferFlux)

Returns base64 encoded MD5 of flux of byte buffers.

Parameters:

bufferFlux - flux of byte buffers.

Returns:

Mono that emits base64 encoded MD5 of bytes.

Applies to