X509KeyStorageFlags 列舉

定義

定義匯入 X.509 憑證之私密金鑰的位置及方法。Defines where and how to import the private key of an X.509 certificate.

此列舉有 FlagsAttribute 屬性,因此其成員值可進行位元組合。

public enum class X509KeyStorageFlags
public enum X509KeyStorageFlags
[System.Flags]
public enum X509KeyStorageFlags
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum X509KeyStorageFlags
type X509KeyStorageFlags = 
[<System.Flags>]
type X509KeyStorageFlags = 
[<System.Flags>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type X509KeyStorageFlags = 
Public Enum X509KeyStorageFlags
繼承
X509KeyStorageFlags
屬性

欄位

DefaultKeySet 0

使用預設金鑰集。The default key set is used. 預設通常是使用者金鑰集。The user key set is usually the default.

EphemeralKeySet 32

匯入憑證時,會在記憶體中建立與 PFX 檔案建立關聯的金鑰,但不保存在磁碟上。The key associated with a PFX file is created in memory and not persisted on disk when importing a certificate.

Exportable 4

匯入的金鑰會標記為可匯出。Imported keys are marked as exportable.

MachineKeySet 2

私密金鑰儲存在本機電腦存放區,而不是目前的使用者存放區。Private keys are stored in the local computer store rather than the current user store.

PersistKeySet 16

匯入憑證時,會保存與 PFX 檔案建立關聯的金鑰。The key associated with a PFX file is persisted when importing a certificate.

UserKeySet 1

私密金鑰儲存在目前的使用者存放區,而不是本機電腦存放區。Private keys are stored in the current user store rather than the local computer store. 即使憑證指定金鑰應該放在本機電腦存放區,這種情況也會發生。This occurs even if the certificate specifies that the keys should go in the local computer store.

UserProtected 8

透過對話方塊或其他方法通知使用者已存取該金鑰。Notify the user through a dialog box or other method that the key is accessed. 使用中的密碼編譯服務提供者 (CSP) 會定義精確的行為。The Cryptographic Service Provider (CSP) in use defines the precise behavior.

適用於