AppUriAuthenticationPolicy.Builder.AddAppAndUriMapping Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds mappings from an app and URI to an alias, which will be used for authentication.
[Android.Runtime.Register("addAppAndUriMapping", "(Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;)Landroid/security/AppUriAuthenticationPolicy$Builder;", "", ApiSince=31)]
public Android.Security.AppUriAuthenticationPolicy.Builder AddAppAndUriMapping(string appPackageName, Android.Net.Uri uri, string alias);
[<Android.Runtime.Register("addAppAndUriMapping", "(Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;)Landroid/security/AppUriAuthenticationPolicy$Builder;", "", ApiSince=31)>]
member this.AddAppAndUriMapping : string * Android.Net.Uri * string -> Android.Security.AppUriAuthenticationPolicy.Builder
Parameters
- appPackageName
- String
The app's package name to authenticate the user to. This value cannot be null.
- uri
- Uri
The URI to authenticate the user to. This value cannot be null.
- alias
- String
The alias which will be used for authentication. This value cannot be null.
Returns
the same Builder instance. This value cannot be null.
- Attributes
Remarks
Adds mappings from an app and URI to an alias, which will be used for authentication.
If this method is called with a package name and URI that was previously added, the previous alias will be overwritten.
When the system tries to determine which alias to return to a requesting app calling KeyChain.choosePrivateKeyAlias, it will choose the alias whose associated URI exactly matches the URI provided in KeyChain.choosePrivateKeyAlias(Activity,KeyChainAliasCallback,String[],Principal[],Uri,String) or the URI built from the host and port provided in KeyChain.choosePrivateKeyAlias(Activity,KeyChainAliasCallback,String[],Principal[],String,int,String).
Android reference for android.security.AppUriAuthenticationPolicy.Builder.addAppAndUriMapping.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.