DryRun密钥库
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 () 一种检查我们是否有有效的密钥存储可以对话的方法。 |
公共构造函数
DryRun密钥库
public DryRunKeyStore ()
公共方法
包含密钥
public boolean containsKey (String key)
检查密钥存储是否包含给定密钥的方法。
参数 | |
---|---|
key | String :检查是否存在。 |
退货 | |
---|---|
boolean | 如果给定的键存在则为 true。 |
获取密钥
public String fetchKey (String key)
一种在密钥存储中获取给定密钥的方法。
参数 | |
---|---|
key | String :在密钥存储中获取。 |
退货 | |
---|---|
String | 键的String 值。如果没有找到 key 则返回 null。 |
获取密钥
public String fetchKey (String key, String optionType)
空运行密钥库的特殊回调以创建预期类型的值。
参数 | |
---|---|
key | String :选项的键,将被忽略。 |
optionType | String :预期的返回类型。 |
退货 | |
---|---|
String |
可用
public boolean isAvailable ()
一种检查我们是否有有效的密钥存储可以对话的方法。
退货 | |
---|---|
boolean | 如果我们有有效的密钥存储,则为 true,否则为 false。 |