Od 27 marca 2025 r. zalecamy używanie android-latest-release
zamiast aosp-main
do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
JSONFileKeyStoreFactory
public
class
JSONFileKeyStoreFactory
extends Object
implements
IKeyStoreFactory
java.lang.Object
|
↳ |
com.android.tradefed.util.keystore.JSONFileKeyStoreFactory
|
Implementacja fabryki KeyStore JSON, która udostępnia JSONFileKeyStoreClient
do dostępu do pliku KeyStore JSON.
Podsumowanie
Konstruktory publiczne
JSONFileKeyStoreFactory
public JSONFileKeyStoreFactory ()
Metody publiczne
createKeyStoreClient
public IKeyStoreClient createKeyStoreClient ()
Tworzy klienta magazynu kluczy, aby pobrać wartości z magazynu kluczy.
setHostName
public void setHostName (String hostName)
Metoda pomocnicza służąca do ustawiania nazwy hosta. Służy do testowania.
Parametry |
hostName |
String : do użycia jako nazwa hosta. |
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 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 |"]]