Share via


WrappedKeyEntry 類別

定義

Entry,保存已包裝的索引鍵。

[Android.Runtime.Register("android/security/keystore/WrappedKeyEntry", ApiSince=28, DoNotGenerateAcw=true)]
public class WrappedKeyEntry : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Security.KeyStore.IEntry
[<Android.Runtime.Register("android/security/keystore/WrappedKeyEntry", ApiSince=28, DoNotGenerateAcw=true)>]
type WrappedKeyEntry = class
    inherit Object
    interface KeyStore.IEntry
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
繼承
WrappedKeyEntry
屬性
實作

備註

Entry,保存已包裝的索引鍵。 包裝的金鑰包含加密金鑰資料和描述資訊,可用來安全地將金鑰資料匯入硬體支援的金鑰存放區。

包裝的索引鍵採用 DER 編碼的 ASN.1 格式,由下列架構指定:

KeyDescription ::= SEQUENCE(
                    keyFormat INTEGER,                   # Values from KeyFormat enum.
                    keyParams AuthorizationList,
                )

                SecureKeyWrapper ::= SEQUENCE(
                    version INTEGER,                     # Contains value 0
                    encryptedTransportKey OCTET_STRING,
                    initializationVector OCTET_STRING,
                    keyDescription KeyDescription,
                    encryptedKey OCTET_STRING,
                    tag OCTET_STRING
                )

<ul >< li > keyFormat 是 KeyFormat 列舉中的整數,定義純文字索引鍵材質的格式。 </li >< keyParams > 是 (匯入金鑰的特性,如同 generateKey 或 importKey) 。 如果安全匯入成功,這些特性必須與金鑰相關聯,就如同使用 importKey 安全地匯入金鑰資料一樣。 請參閱 AuthorizationList 格式的 金鑰證明 。 </li ><> encryptedTransportKey 是 256 位 AES 金鑰,XORed 具有遮罩金鑰,然後在 RSA-OAEP 模式中加密, (SHA-256 摘要、SHA-1 MGF1 摘要) 包裝金鑰由 wrappingKeyBlob 指定。 </li ><> keyDescription 是上述的 KeyDescription。 </li ><> encryptedKey 是要匯入的金鑰金鑰內容,格式為 keyFormat,並以 AES-GCM 模式中的 encryptedEphemeralKey 加密,並以 DER 編碼的 keyDescription 標記法作為其他已驗證的資料提供。 </li >< li > 標記是由 encryptedKey 的 AES-GCM 加密所產生的標記。 </li >< /ul>

匯入的包裝金鑰會有KeymasterDefs.KM_ORIGIN_SECURELY_IMPORTED

android.security.keystore.WrappedKeyEntry JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

建構函式

WrappedKeyEntry(Byte[], String, String, IAlgorithmParameterSpec)

WrappedKeyEntry使用二進位包裝的索引鍵建構 。

WrappedKeyEntry(IntPtr, JniHandleOwnership)

Entry,保存已包裝的索引鍵。

屬性

AlgorithmParameterSpec

Entry,保存已包裝的索引鍵。

Class

傳回這個 Object 的執行時間類別。

(繼承來源 Object)
Handle

基礎 Android 實例的控制碼。

(繼承來源 Object)
JniIdentityHashCode

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
JniPeerMembers

Entry,保存已包裝的索引鍵。

PeerReference

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
ThresholdClass

Entry,保存已包裝的索引鍵。

ThresholdType

Entry,保存已包裝的索引鍵。

Transformation

Entry,保存已包裝的索引鍵。

WrappingKeyAlias

Entry,保存已包裝的索引鍵。

方法

Clone()

建立並傳回這個 物件的複本。

(繼承來源 Object)
Dispose()

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
Dispose(Boolean)

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
Equals(Object)

指出其他物件是否「等於」這個物件。

(繼承來源 Object)
GetHashCode()

傳回此物件的雜湊碼值。

(繼承來源 Object)
GetWrappedKeyBytes()

Entry,保存已包裝的索引鍵。

JavaFinalize()

當垃圾收集判斷物件不再參考物件時,垃圾收集行程會在物件上呼叫。

(繼承來源 Object)
Notify()

喚醒正在等候此物件監視器的單一線程。

(繼承來源 Object)
NotifyAll()

喚醒正在等候此物件監視器的所有線程。

(繼承來源 Object)
SetHandle(IntPtr, JniHandleOwnership)

設定 Handle 屬性。

(繼承來源 Object)
ToArray<T>()

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
ToString()

傳回物件的字串表示。

(繼承來源 Object)
UnregisterFromRuntime()

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
Wait()

讓目前的執行緒等到喚醒為止,通常是 em < notified/em > 或 < em > interrupted < /em > 。 ><

(繼承來源 Object)
Wait(Int64)

讓目前的執行緒等到喚醒為止,通常是 em < notified/em > 或 < em > interrupted < /em > ,或直到經過一定數量的即時為止。 <>

(繼承來源 Object)
Wait(Int64, Int32)

讓目前的執行緒等到喚醒為止,通常是 em < notified/em > 或 < em > interrupted < /em > ,或直到經過一定數量的即時為止。 <>

(繼承來源 Object)

明確介面實作

IJavaPeerable.Disposed()

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
IJavaPeerable.DisposeUnlessReferenced()

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
IJavaPeerable.Finalized()

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
IJavaPeerable.JniManagedPeerState

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

Entry,保存已包裝的索引鍵。

(繼承來源 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

Entry,保存已包裝的索引鍵。

(繼承來源 Object)

擴充方法

JavaCast<TResult>(IJavaObject)

執行 Android 執行時間檢查的類型轉換。

JavaCast<TResult>(IJavaObject)

Entry,保存已包裝的索引鍵。

GetJniTypeName(IJavaPeerable)

Entry,保存已包裝的索引鍵。

適用於