Stay organized with collections
Save and categorize content based on your preferences.
KeyChainAliasCallback
public
interface
KeyChainAliasCallback
android.security.KeyChainAliasCallback
|
The KeyChainAliasCallback is the callback for KeyChain.choosePrivateKeyAlias(Activity, KeyChainAliasCallback, String, Principal, Uri, String)
.
Summary
Public methods |
abstract
void
|
alias(String alias)
Called with the alias of the certificate chosen by the user, or
null if no value was chosen.
|
Public methods
alias
public abstract void alias (String alias)
Called with the alias of the certificate chosen by the user, or
null if no value was chosen.
Parameters |
alias |
String : This value may be null . |
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 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# KeyChainAliasCallback\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nKeyChainAliasCallback\n=====================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/security/KeyChainAliasCallback \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nKeyChainAliasCallback\n`\n\n\n`\n\n\n`\n\n|----------------------------------------|\n| android.security.KeyChainAliasCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe KeyChainAliasCallback is the callback for [KeyChain.choosePrivateKeyAlias(Activity, KeyChainAliasCallback, String, Principal, Uri, String)](/reference/android/security/KeyChain#choosePrivateKeyAlias(android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20android.net.Uri,%20java.lang.String)).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[alias](/reference/android/security/KeyChainAliasCallback#alias(java.lang.String))`(`[String](/reference/java/lang/String)` alias) ` Called with the alias of the certificate chosen by the user, or null if no value was chosen. |\n\nPublic methods\n--------------\n\n### alias\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void alias (String alias)\n```\n\nCalled with the alias of the certificate chosen by the user, or\nnull if no value was chosen.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|--------------------------------------------|\n| `alias` | `String`: This value may be `null`. \u003cbr /\u003e |"]]