Udostępnij za pośrednictwem


Security.GetProviders Method

Definition

Overloads

GetProviders()

Returns an array containing all the installed providers.

GetProviders(IDictionary<String,String>)

Returns an array containing all installed providers that satisfy the specified* selection criteria, or null if no such providers have been installed.

GetProviders(String)

Returns an array containing all installed providers that satisfy the specified selection criterion, or null if no such providers have been installed.

GetProviders()

Returns an array containing all the installed providers.

[Android.Runtime.Register("getProviders", "()[Ljava/security/Provider;", "")]
public static Java.Security.Provider[]? GetProviders ();
[<Android.Runtime.Register("getProviders", "()[Ljava/security/Provider;", "")>]
static member GetProviders : unit -> Java.Security.Provider[]

Returns

an array of all the installed providers.

Attributes

Remarks

Returns an array containing all the installed providers. The order of the providers in the array is their preference order.

Java documentation for java.security.Security.getProviders().

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

GetProviders(IDictionary<String,String>)

Returns an array containing all installed providers that satisfy the specified* selection criteria, or null if no such providers have been installed.

[Android.Runtime.Register("getProviders", "(Ljava/util/Map;)[Ljava/security/Provider;", "")]
public static Java.Security.Provider[]? GetProviders (System.Collections.Generic.IDictionary<string,string>? filter);
[<Android.Runtime.Register("getProviders", "(Ljava/util/Map;)[Ljava/security/Provider;", "")>]
static member GetProviders : System.Collections.Generic.IDictionary<string, string> -> Java.Security.Provider[]

Parameters

filter
IDictionary<String,String>

the criteria for selecting providers. The filter is case-insensitive.

Returns

all the installed providers that satisfy the selection criteria, or null if no such providers have been installed.

Attributes

Remarks

Returns an array containing all installed providers that satisfy the specified* selection criteria, or null if no such providers have been installed. The returned providers are ordered according to their #insertProviderAt(java.security.Provider, int) preference order.

The selection criteria are represented by a map. Each map entry represents a selection criterion. A provider is selected iff it satisfies all selection criteria. The key for any entry in such a map must be in one of the following two formats: <ul> <li> <crypto_service>.<algorithm_or_type>

The cryptographic service name must not contain any dots.

The value associated with the key must be an empty string.

A provider satisfies this selection criterion iff the provider implements the specified algorithm or type for the specified cryptographic service. <li> <crypto_service>. <algorithm_or_type> <attribute_name>

The cryptographic service name must not contain any dots. There must be one or more space characters between the <algorithm_or_type> and the <attribute_name>.

The value associated with the key must be a non-empty string. A provider satisfies this selection criterion iff the provider implements the specified algorithm or type for the specified cryptographic service and its implementation meets the constraint expressed by the specified attribute name/value pair. </ul>

See the Java Cryptography Architecture Standard Algorithm Name Documentation for information about standard cryptographic service names, standard algorithm names and standard attribute names.

Added in 1.3.

Java documentation for java.security.Security.getProviders(java.util.Map<java.lang.String, java.lang.String>).

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

GetProviders(String)

Returns an array containing all installed providers that satisfy the specified selection criterion, or null if no such providers have been installed.

[Android.Runtime.Register("getProviders", "(Ljava/lang/String;)[Ljava/security/Provider;", "")]
public static Java.Security.Provider[]? GetProviders (string? filter);
[<Android.Runtime.Register("getProviders", "(Ljava/lang/String;)[Ljava/security/Provider;", "")>]
static member GetProviders : string -> Java.Security.Provider[]

Parameters

filter
String

the criterion for selecting providers. The filter is case-insensitive.

Returns

all the installed providers that satisfy the selection criterion, or null if no such providers have been installed.

Attributes

Exceptions

if an unusable filter is supplied.

if filter is null.

Remarks

Returns an array containing all installed providers that satisfy the specified selection criterion, or null if no such providers have been installed. The returned providers are ordered according to their #insertProviderAt(java.security.Provider, int) preference order.

A cryptographic service is always associated with a particular algorithm or type. For example, a digital signature service is always associated with a particular algorithm (e.g., DSA), and a CertificateFactory service is always associated with a particular certificate type (e.g., X.509).

The selection criterion must be specified in one of the following two formats: <ul> <li> <crypto_service>.<algorithm_or_type>

The cryptographic service name must not contain any dots.

A provider satisfies the specified selection criterion iff the provider implements the specified algorithm or type for the specified cryptographic service.

For example, "CertificateFactory.X.509" would be satisfied by any provider that supplied a CertificateFactory implementation for X.509 certificates. <li> <crypto_service>.<algorithm_or_type> <attribute_name>:<attribute_value>

The cryptographic service name must not contain any dots. There must be one or more space characters between the <algorithm_or_type> and the <attribute_name>.

A provider satisfies this selection criterion iff the provider implements the specified algorithm or type for the specified cryptographic service and its implementation meets the constraint expressed by the specified attribute name/value pair.

For example, "Signature.SHA1withDSA KeySize:1024" would be satisfied by any provider that implemented the SHA1withDSA signature algorithm with a keysize of 1024 (or larger).

</ul>

See the Java Cryptography Architecture Standard Algorithm Name Documentation for information about standard cryptographic service names, standard algorithm names and standard attribute names.

Added in 1.3.

Java documentation for java.security.Security.getProviders(java.lang.String).

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