PackageManager.FeatureStrongboxKeystore 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
#getSystemAvailableFeatures
的功能,#hasSystemFeature(String)
以及#hasSystemFeature(String, int)
:如果支持此功能,设备将实现由专用安全处理器支持的 Android 密钥存储,称为 StrongBox。
[Android.Runtime.Register("FEATURE_STRONGBOX_KEYSTORE", ApiSince=28)]
public const string FeatureStrongboxKeystore;
[<Android.Runtime.Register("FEATURE_STRONGBOX_KEYSTORE", ApiSince=28)>]
val mutable FeatureStrongboxKeystore : string
字段值
- 属性
注解
功能,#getSystemAvailableFeatures
#hasSystemFeature(String)
以及#hasSystemFeature(String, int)
:如果此功能受支持,设备将实现由称为 StrongBox 的专用安全处理器支持的 Android 密钥存储。 如果此功能具有版本,版本号指示在 StrongBox: ul>li 100 中实现哪些功能:<ECDH 的硬件支持(请参阅javax.crypto.KeyAgreement
)和支持应用生成的证明密钥(请参阅android.security.keystore.KeyGenParameterSpec.Builder#setAttestKeyAlias(String)
)。>< <li>41:设备解锁密钥的硬件强制实施(请参阅 android.security.keystore.KeyGenParameterSpec.Builder#setUnlockedDeviceRequired(boolean)
)。 <li>40:支持包装密钥导入(请参阅 android.security.keystore.WrappedKeyEntry
)、对 ID 证明的可选支持(请参阅 android.security.keystore.KeyGenParameterSpec.Builder#setDevicePropertiesAttestationIncluded(boolean)
)、证明(请参阅 android.security.keystore.KeyGenParameterSpec.Builder#setAttestationChallenge(byte[])
)、AES、HMAC、ECDSA 和 RSA 支持,其中机密或私钥永远不会离开安全硬件,并支持在使用密钥之前要求用户身份验证。 </ul> 如果某个设备具有 StrongBox,则保证为使用 Android 12 启动的所有设备设置此功能版本号,并且可以在使用早期版本启动的设备上设置。 如果设置了功能版本,它至少将具有值 40。 如果未设置设备,则可能具有 StrongBox,但它可能不支持上面列出的所有功能。
适用于 . 的 android.content.pm.PackageManager.FEATURE_STRONGBOX_KEYSTORE
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。