語言

KeyGenParameterSpec.Purposes 屬性

定義

返回目的集合(例如:

public Android.Security.Keystore.KeyStorePurpose Purposes { [Android.Runtime.Register("getPurposes", "()I", "", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getPurposes", "()I", "", ApiSince=23)>]
member this.Purposes : Android.Security.Keystore.KeyStorePurpose

屬性值

值為0或以下組合:KeyProperties.PURPOSE_ENCRYPT;KeyProperties.PURPOSE_DECRYPT;KeyProperties.PURPOSE_SIGN;KeyProperties.PURPOSE_VERIFY;KeyProperties.PURPOSE_WRAP_KEY;KeyProperties.PURPOSE_AGREE_KEY;KeyProperties.PURPOSE_ATTEST_KEY

屬性

備註

回傳可用於該金鑰的目的集合(例如加密、解密、簽名)。 任何嘗試將金鑰用於其他用途的嘗試都會被拒絕。

參見 KeyProperties。 PURPOSE 旗幟。

Java 文件 android.security.keystore.KeyGenParameterSpec.getPurposes()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於