IKeyStoreClient

public interface IKeyStoreClient

com.android.tradefed.util.keystore.IKeyStoreClient


Interface to access a key store for password or sensitive data.

Summary

Public methods

abstract boolean containsKey(String key)

A method to check if the key store contains a given key.

abstract String fetchKey(String key)

A method to fetch a given key inside the key store.

abstract boolean isAvailable()

A method to check whether or not we have a valid key store to talk to.

Public methods

containsKey

public abstract boolean containsKey (String key)

A method to check if the key store contains a given key.

Parameters
key String: to check existence for.

Returns
boolean true if the given key exists.

fetchKey

public abstract String fetchKey (String key)

A method to fetch a given key inside the key store.

Parameters
key String: to fetch inside the key store.

Returns
String the String value of the key. It will return null if key is not found.

isAvailable

public abstract boolean isAvailable ()

A method to check whether or not we have a valid key store to talk to.

Returns
boolean true if we have a valid key store, false otherwise.