IpSecAlgorithm 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| IpSecAlgorithm(String, Byte[]) |
创建一个受支持的类型的 IpSecAlgorithm。 |
| IpSecAlgorithm(String, Byte[], Int32) |
创建一个受支持的类型的 IpSecAlgorithm。 |
IpSecAlgorithm(String, Byte[])
创建一个受支持的类型的 IpSecAlgorithm。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[B)V", "", ApiSince=28)]
public IpSecAlgorithm(string algorithm, byte[] key);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[B)V", "", ApiSince=28)>]
new Android.Net.IpSecAlgorithm : string * byte[] -> Android.Net.IpSecAlgorithm
参数
- algorithm
- String
算法的名称。
- key
- Byte[]
键填充为 8 位的倍数。
- 属性
注解
创建一个受支持的类型的 IpSecAlgorithm。 此类中支持的算法名称定义为常量。
对于生成完整性检查值的算法,截断长度是必需参数。 请参见#IpSecAlgorithm(String algorithm, byte[] key, int truncLenBits)
Java文档android.net.IpSecAlgorithm.IpSecAlgorithm(java.lang.String, byte[])。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
IpSecAlgorithm(String, Byte[], Int32)
创建一个受支持的类型的 IpSecAlgorithm。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[BI)V", "", ApiSince=28)]
public IpSecAlgorithm(string algorithm, byte[] key, int truncLenBits);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[BI)V", "", ApiSince=28)>]
new Android.Net.IpSecAlgorithm : string * byte[] * int -> Android.Net.IpSecAlgorithm
参数
- algorithm
- String
算法的名称。
- key
- Byte[]
键填充为 8 位的倍数。
- truncLenBits
- Int32
要使用的输出哈希位数。
- 属性
注解
创建一个受支持的类型的 IpSecAlgorithm。 此类中支持的算法名称定义为常量。
此构造函数仅支持使用截断长度的算法。 即身份验证和经过身份验证的加密算法。
Java文档android.net.IpSecAlgorithm.IpSecAlgorithm(java.lang.String, byte[], int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。