ExemptionMechanism.GetInstance Method

Definition

Overloads

GetInstance(String)

Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.

GetInstance(String, Provider)

Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.

GetInstance(String, String)

Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.

GetInstance(String)

Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljavax/crypto/ExemptionMechanism;", "")]
public static Javax.Crypto.ExemptionMechanism? GetInstance (string? algorithm);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljavax/crypto/ExemptionMechanism;", "")>]
static member GetInstance : string -> Javax.Crypto.ExemptionMechanism

Parameters

algorithm
String

the standard name of the requested exemption mechanism. See the ExemptionMechanism section in the Java Cryptography Architecture Standard Algorithm Name Documentation for information about standard exemption mechanism names.

Returns

the new ExemptionMechanism object.

Attributes

Exceptions

if the specified algorithm is not available by any provider.

if the algorithm parameter is null.

Remarks

Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.

This method traverses the list of registered security Providers, starting with the most preferred Provider. A new ExemptionMechanism object encapsulating the ExemptionMechanismSpi implementation from the first Provider that supports the specified algorithm is returned.

Note that the list of registered providers may be retrieved via the Security#getProviders() Security.getProviders() method.

Java documentation for javax.crypto.ExemptionMechanism.getInstance(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

GetInstance(String, Provider)

Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljavax/crypto/ExemptionMechanism;", "")]
public static Javax.Crypto.ExemptionMechanism? GetInstance (string? algorithm, Java.Security.Provider? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljavax/crypto/ExemptionMechanism;", "")>]
static member GetInstance : string * Java.Security.Provider -> Javax.Crypto.ExemptionMechanism

Parameters

algorithm
String

the standard name of the requested exemption mechanism. See the ExemptionMechanism section in the Java Cryptography Architecture Standard Algorithm Name Documentation for information about standard exemption mechanism names.

provider
Provider

the provider.

Returns

the new ExemptionMechanism object.

Attributes

Exceptions

if the specified algorithm is not provided by the specified provider.

if the algorithm parameter is null.

if the provider parameter is null.

Remarks

Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.

A new ExemptionMechanism object encapsulating the ExemptionMechanismSpi implementation from the specified Provider object is returned. Note that the specified Provider object does not have to be registered in the provider list.

Java documentation for javax.crypto.ExemptionMechanism.getInstance(java.lang.String, java.security.Provider).

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

GetInstance(String, String)

Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/ExemptionMechanism;", "")]
public static Javax.Crypto.ExemptionMechanism? GetInstance (string? algorithm, string? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/ExemptionMechanism;", "")>]
static member GetInstance : string * string -> Javax.Crypto.ExemptionMechanism

Parameters

algorithm
String

the standard name of the requested exemption mechanism. See the ExemptionMechanism section in the Java Cryptography Architecture Standard Algorithm Name Documentation for information about standard exemption mechanism names.

provider
String

the name of the provider.

Returns

the new ExemptionMechanism object.

Attributes

Exceptions

if the specified algorithm is not provided by the specified provider.

if the specified provider is not available.

if the algorithm parameter is null.

if the provider parameter is null.

Remarks

Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.

A new ExemptionMechanism object encapsulating the ExemptionMechanismSpi implementation from the specified provider is returned. The specified provider must be registered in the security provider list.

Note that the list of registered providers may be retrieved via the Security#getProviders() Security.getProviders() method.

Java documentation for javax.crypto.ExemptionMechanism.getInstance(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