IKeyStoreClient

public interface IKeyStoreClient

com.android.tradefed.util.keystore.IKeyStoreClient


用于访问密码或敏感数据密钥库的接口。

摘要

公共方法

abstract boolean containsKey(String key)

用于检查密钥库是否包含给定密钥的方法。

abstract String fetchKey(String key)

用于在密钥库中提取给定密钥的方法。

abstract boolean isAvailable()

用于检查是否有有效的密钥库可供通信的方法。

公共方法

containsKey

public abstract boolean containsKey (String key)

用于检查密钥库是否包含给定密钥的方法。

参数
key String:用于检查是否存在。

返回
boolean 如果指定键存在,则为 true。

fetchKey

public abstract String fetchKey (String key)

用于在密钥库中提取给定密钥的方法。

参数
key String:在密钥库中提取。

返回
String 键的 String 值。如果未找到键,则返回 null。

isAvailable

public abstract boolean isAvailable ()

用于检查是否有有效的密钥库可供通信的方法。

返回
boolean 如果我们有有效的密钥库,则为 true;否则为 false。