Język

CredentialOption.Builder.SetAllowedProviders Method

Definition

Sets a set of provider ComponentName to be queried while gathering credentials from credential providers on the device.

[Android.Runtime.Register("setAllowedProviders", "(Ljava/util/Set;)Landroid/credentials/CredentialOption$Builder;", "", ApiSince=34)]
public Android.Credentials.CredentialOption.Builder SetAllowedProviders(System.Collections.Generic.ICollection<Android.Content.ComponentName> allowedProviders);
[<Android.Runtime.Register("setAllowedProviders", "(Ljava/util/Set;)Landroid/credentials/CredentialOption$Builder;", "", ApiSince=34)>]
member this.SetAllowedProviders : System.Collections.Generic.ICollection<Android.Content.ComponentName> -> Android.Credentials.CredentialOption.Builder

Parameters

allowedProviders
ICollection<ComponentName>

The non-null collection of allowed service components, with no null elements. An empty collection removes this filter for non-system providers. This requires android.permission.CREDENTIAL_MANAGER_SET_ALLOWED_PROVIDERS.

Returns

This builder, so that more settings can be applied.

Attributes

Remarks

Sets a set of provider ComponentName to be queried while gathering credentials from credential providers on the device. If no candidate providers are specified, all user configured and system credential providers will be queried in the candidate query phase. If an invalid component name is provided, or a service corresponding to the component name does not exist on the device, that component name is ignored. If all component names are invalid, or not present on the device, no providers are queried and no credentials are retrieved.

Android reference for android.credentials.CredentialOption.Builder.setAllowedProviders.

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.

Applies to