语言

Recipient.Builder.SetPsk(Byte[], Byte[]) 方法

定义

设置要用于消息身份验证的预共享密钥信息。

[Android.Runtime.Register("setPsk", "([B[B)Landroid/crypto/hpke/Recipient$Builder;", "GetSetPsk_arrayBarrayBHandler", ApiSince=37)]
public virtual Android.Crypto.Hpke.Recipient.Builder SetPsk(byte[] psk, byte[] pskId);
[<Android.Runtime.Register("setPsk", "([B[B)Landroid/crypto/hpke/Recipient$Builder;", "GetSetPsk_arrayBarrayBHandler", ApiSince=37)>]
abstract member SetPsk : byte[] * byte[] -> Android.Crypto.Hpke.Recipient.Builder
override this.SetPsk : byte[] * byte[] -> Android.Crypto.Hpke.Recipient.Builder

参数

psk
Byte[]

预共享密钥。 此值不能为 null。

pskId
Byte[]

预共享密钥的 ID。 此值不能为 null。

返回

生成器。 此值不能为 null。

特性

注解

设置要用于消息身份验证的预共享密钥信息。

Android 参考。android.crypto.hpke.Recipient.Builder.setPsk

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于