SecretKeyFactory.GetInstance SecretKeyFactory.GetInstance Method

Definition

Overloads

GetInstance(String) GetInstance(String)

Creates a new SecretKeyFactory instance for the specified key algorithm.

GetInstance(String, Provider) GetInstance(String, Provider)

Creates a new SecretKeyFactory instance for the specified key algorithm from the specified provider.

GetInstance(String, String) GetInstance(String, String)

Creates a new SecretKeyFactory instance for the specified key algorithm from the specified provider.

GetInstance(String) GetInstance(String)

Creates a new SecretKeyFactory instance for the specified key algorithm.

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

Parameters

algorithm
String String

the name of the key algorithm.

Returns

Exceptions

if no installed provider can provide the requested algorithm.

if the specified algorithm is null.

Remarks

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.

GetInstance(String, Provider) GetInstance(String, Provider)

Creates a new SecretKeyFactory instance for the specified key algorithm from the specified provider.

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

Parameters

algorithm
String String

the name of the key algorithm.

provider
Provider Provider

the provider that provides the requested algorithm.

Returns

Exceptions

if the specified provider cannot provider the requested algorithm.

if the specified provider is null.

is the specified algorithm name is null.

Remarks

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.

GetInstance(String, String) GetInstance(String, String)

Creates a new SecretKeyFactory instance for the specified key algorithm from the specified provider.

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

Parameters

algorithm
String String

the name of the key algorithm.

provider
String String

the name of the provider that provides the requested algorithm.

Returns

Exceptions

if the specified provider cannot provide the requested algorithm.

if the specified provider does not exist.

if the specified provider name is null or empty.

Remarks

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