KeyRep 构造函数

定义

重载

名称 说明
KeyRep(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

KeyRep(KeyRep+Type, String, String, Byte[])

构造备用 Key 类。

KeyRep(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

protected KeyRep(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.KeyRep : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.KeyRep

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

KeyRep(KeyRep+Type, String, String, Byte[])

构造备用 Key 类。

[Android.Runtime.Register(".ctor", "(Ljava/security/KeyRep$Type;Ljava/lang/String;Ljava/lang/String;[B)V", "")]
public KeyRep(Java.Security.KeyRep.Type? type, string? algorithm, string? format, byte[]? encoded);
[<Android.Runtime.Register(".ctor", "(Ljava/security/KeyRep$Type;Ljava/lang/String;Ljava/lang/String;[B)V", "")>]
new Java.Security.KeyRep : Java.Security.KeyRep.Type * string * string * byte[] -> Java.Security.KeyRep

参数

type
KeyRep.Type

Type.SECRET、Type.PUBLIC 或 Type.PRIVATE 之一

algorithm
String

从中返回的算法 Key.getAlgorithm()

format
String

从中返回的编码格式 Key.getFormat()

encoded
Byte[]

从 返回的编码字节 Key.getEncoded()

属性

例外

如果为 .,则为type, algorithm, format or encodednull

注解

Java文档java.security.KeyRep.KeyRep(java.security.Type, java.lang.String, java.lang.String, byte[])

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于