DryRunKeyStore

public class DryRunKeyStore
extends Object implements IKeyStoreClient

java.lang.Object
   ↳ com.android.tradefed.util.keystore.DryRunKeyStore


用于模拟运行的密钥库,其中任何密钥库值始终会正确替换和找到。

摘要

公共构造函数

DryRunKeyStore()

公共方法

boolean containsKey(String key)

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

String fetchKey(String key)

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

String fetchKey(String key, String optionType)

模拟运行密钥库的特殊回调,用于创建预期类型的值。

boolean isAvailable()

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

公共构造函数

DryRunKeyStore

public DryRunKeyStore ()

公共方法

containsKey

public boolean containsKey (String key)

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

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

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

fetchKey

public String fetchKey (String key)

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

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

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

fetchKey

public String fetchKey (String key, 
                String optionType)

模拟运行密钥库的特殊回调,用于创建预期类型的值。

参数
key String:选项的键,将被忽略。

optionType String:预期的返回类型。

返回
String

isAvailable

public boolean isAvailable ()

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

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