KeyRep 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| KeyRep(IntPtr, JniHandleOwnership) |
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。 |
| KeyRep(KeyRep+Type, String, String, Byte[]) |
建構替代的鑰匙類別。 |
KeyRep(IntPtr, JniHandleOwnership)
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。
protected KeyRep(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.KeyRep : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.KeyRep
參數
- transfer
- JniHandleOwnership
JniHandleOwnership,指出如何處理javaReference
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
KeyRep(KeyRep+Type, String, String, Byte[])
建構替代的鑰匙類別。
[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 encoded 是 null 。
備註
Java 文件 java.security.KeyRep.KeyRep(java.security.Type, java.lang.String, java.lang.String, byte[])。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。