Condividi tramite


Security.GetAlgorithms(String) Method

Definition

Returns a Set of Strings containing the names of all available algorithms or types for the specified Java cryptographic service (e.

[Android.Runtime.Register("getAlgorithms", "(Ljava/lang/String;)Ljava/util/Set;", "")]
public static System.Collections.Generic.ICollection<string>? GetAlgorithms (string? serviceName);
[<Android.Runtime.Register("getAlgorithms", "(Ljava/lang/String;)Ljava/util/Set;", "")>]
static member GetAlgorithms : string -> System.Collections.Generic.ICollection<string>

Parameters

serviceName
String

the name of the Java cryptographic service (e.g., Signature, MessageDigest, Cipher, Mac, KeyStore). Note: this parameter is case-insensitive.

Returns

a Set of Strings containing the names of all available algorithms or types for the specified Java cryptographic service or an empty set if no provider supports the specified service.

Attributes

Remarks

Returns a Set of Strings containing the names of all available algorithms or types for the specified Java cryptographic service (e.g., Signature, MessageDigest, Cipher, Mac, KeyStore). Returns an empty Set if there is no provider that supports the specified service or if serviceName is null. For a complete list of Java cryptographic services, please see the Java Cryptography Architecture API Specification &amp; Reference. Note: the returned set is immutable.

Added in 1.4.

Java documentation for java.security.Security.getAlgorithms(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