語言

KeyInfo.SecurityLevel 屬性

定義

回傳金鑰所受保護的安全等級。

public virtual int SecurityLevel { [Android.Runtime.Register("getSecurityLevel", "()I", "GetGetSecurityLevelHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getSecurityLevel", "()I", "GetGetSecurityLevelHandler", ApiSince=31)>]
member this.SecurityLevel : int

屬性值

價值屬於以下之一:KeyProperties.SECURITY_LEVEL_UNKNOWN;KeyProperties.SECURITY_LEVEL_UNKNOWN_SECURE;KeyProperties.SECURITY_LEVEL_SOFTWARE;KeyProperties.SECURITY_LEVEL_TRUSTED_ENVIRONMENT;KeyProperties.SECURITY_LEVEL_STRONGBOX

屬性

備註

回傳金鑰所受保護的安全等級。 KeyProperties.SecurityLevelEnum.TRUSTED_ENVIRONMENT 並 KeyProperties.SecurityLevelEnum.STRONGBOX 表示金鑰材料存放於安全硬體中。 這類金鑰的金鑰內容僅在安全硬體內部以明文形式存在,且不會在硬體外部暴露。

參見 KeyProperties。 SecurityLevelEnum 不變的。

Java 文件 android.security.keystore.KeyInfo.getSecurityLevel()。

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

適用於