EncodedKeySpec 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| EncodedKeySpec(Byte[]) |
|
| EncodedKeySpec(Byte[], String) |
|
| EncodedKeySpec(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
EncodedKeySpec(Byte[])
EncodedKeySpec使用给定的编码密钥创建新的密钥。
[Android.Runtime.Register(".ctor", "([B)V", "")]
public EncodedKeySpec(byte[]? encodedKey);
[<Android.Runtime.Register(".ctor", "([B)V", "")>]
new Java.Security.Spec.EncodedKeySpec : byte[] -> Java.Security.Spec.EncodedKeySpec
参数
- encodedKey
- Byte[]
编码的密钥。 复制数组的内容,以防止后续修改。
- 属性
注解
EncodedKeySpec使用给定的编码密钥创建新的密钥。
适用于 . 的 java.security.spec.EncodedKeySpec.EncodedKeySpec(byte[])Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
EncodedKeySpec(Byte[], String)
EncodedKeySpec使用给定的编码密钥创建新的密钥。
[Android.Runtime.Register(".ctor", "([BLjava/lang/String;)V", "", ApiSince=35)]
protected EncodedKeySpec(byte[]? encodedKey, string? algorithm);
[<Android.Runtime.Register(".ctor", "([BLjava/lang/String;)V", "", ApiSince=35)>]
new Java.Security.Spec.EncodedKeySpec : byte[] * string -> Java.Security.Spec.EncodedKeySpec
参数
- encodedKey
- Byte[]
编码的密钥。 复制数组的内容,以防止后续修改。
- algorithm
- String
编码密钥的算法名称请参阅Java安全标准算法名称规范中的 KeyFactory 部分,了解有关标准算法名称的信息。
- 属性
注解
EncodedKeySpec使用给定的编码密钥创建新的密钥。 当对象的后续调用方 EncodedKeySpec 可能不知道键的算法时,此构造函数非常有用。
已在 9 中添加。
适用于 . 的 java.security.spec.EncodedKeySpec.EncodedKeySpec(byte[], java.lang.String)Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
EncodedKeySpec(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected EncodedKeySpec(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.Spec.EncodedKeySpec : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.Spec.EncodedKeySpec
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。