Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
JSONFileKeyStoreFactory
public
class
JSONFileKeyStoreFactory
extends Object
implements
IKeyStoreFactory
java.lang.Object
|
↳ |
com.android.tradefed.util.keystore.JSONFileKeyStoreFactory
|
Implementation of a JSON KeyStore Factory, which provides a JSONFileKeyStoreClient
for
accessing a JSON Key Store File.
Summary
Public constructors
JSONFileKeyStoreFactory
public JSONFileKeyStoreFactory ()
Public methods
createKeyStoreClient
public IKeyStoreClient createKeyStoreClient ()
Creates a key store client for fetching values from key store.
setHostName
public void setHostName (String hostName)
Helper method used to set host name. Used for testing.
Parameters |
hostName |
String : to use as host name. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-03-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-08 UTC."],[],[],null,["# JSONFileKeyStoreFactory\n=======================\n\n\n`\npublic\n\n\nclass\nJSONFileKeyStoreFactory\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\nimplements\n\n`[IKeyStoreFactory](../../../../../../../reference/tradefed/com/android/tradefed/util/keystore/IKeyStoreFactory.html)`\n\n\n`\n\n|---|------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.keystore.JSONFileKeyStoreFactory |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nImplementation of a JSON KeyStore Factory, which provides a [JSONFileKeyStoreClient](../../../../../../../reference/tradefed/com/android/tradefed/util/keystore/JSONFileKeyStoreClient.html) for\naccessing a JSON Key Store File.\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[JSONFileKeyStoreFactory](../../../../../../../reference/tradefed/com/android/tradefed/util/keystore/JSONFileKeyStoreFactory.html#JSONFileKeyStoreFactory())`() ` |\n\n| ### Public methods ||\n|-----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[IKeyStoreClient](../../../../../../../reference/tradefed/com/android/tradefed/util/keystore/IKeyStoreClient.html) | ` `[createKeyStoreClient](../../../../../../../reference/tradefed/com/android/tradefed/util/keystore/JSONFileKeyStoreFactory.html#createKeyStoreClient())`() ` Creates a key store client for fetching values from key store. |\n| ` void` | ` `[setHostName](../../../../../../../reference/tradefed/com/android/tradefed/util/keystore/JSONFileKeyStoreFactory.html#setHostName(java.lang.String))`(String hostName) ` Helper method used to set host name. |\n\nPublic constructors\n-------------------\n\n### JSONFileKeyStoreFactory\n\n```\npublic JSONFileKeyStoreFactory ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### createKeyStoreClient\n\n```\npublic IKeyStoreClient createKeyStoreClient ()\n```\n\nCreates a key store client for fetching values from key store.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| [IKeyStoreClient](../../../../../../../reference/tradefed/com/android/tradefed/util/keystore/IKeyStoreClient.html) | [IKeyStoreClient](../../../../../../../reference/tradefed/com/android/tradefed/util/keystore/IKeyStoreClient.html) \u003cbr /\u003e |\n\n| Throws ||\n|------------------------------------------------------------------------------------------------------------------------|---|\n| [KeyStoreException](../../../../../../../reference/tradefed/com/android/tradefed/util/keystore/KeyStoreException.html) | |\n\n### setHostName\n\n```\npublic void setHostName (String hostName)\n```\n\nHelper method used to set host name. Used for testing.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|---------------------------------------|\n| `hostName` | `String`: to use as host name. \u003cbr /\u003e |"]]