IKeyStoreClient
public interface IKeyStoreClient
com.android.tradefed.util.keystore.IKeyStoreClient |
用於訪問密碼或敏感數據的密鑰庫的接口。
概括
公共方法 | |
---|---|
abstract boolean | containsKey (String key) 一種檢查密鑰庫是否包含給定密鑰的方法。 |
abstract String | fetchKey (String key) 一種在密鑰庫中獲取給定密鑰的方法。 |
abstract boolean | isAvailable () 一種檢查我們是否有一個有效的密鑰庫可以與之交談的方法。 |
公共方法
包含密鑰
public abstract boolean containsKey (String key)
一種檢查密鑰庫是否包含給定密鑰的方法。
參數 | |
---|---|
key | String :檢查是否存在。 |
退貨 | |
---|---|
boolean | 如果給定的鍵存在,則為真。 |
取鍵
public abstract String fetchKey (String key)
一種在密鑰庫中獲取給定密鑰的方法。
參數 | |
---|---|
key | String :在密鑰庫中獲取。 |
退貨 | |
---|---|
String | 鍵的ERROR(/String) 值。如果找不到鍵,它將返回 null。 |
可用
public abstract boolean isAvailable ()
一種檢查我們是否有一個有效的密鑰庫可以與之交談的方法。
退貨 | |
---|---|
boolean | 如果我們有一個有效的密鑰庫,則為 true,否則為 false。 |