Android Guides | Samples

Javax.Crypto.SecretKeyFactory.GetInstance Method

Creates a new SecretKeyFactory instance for the specified key algorithm.

Syntax

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;", "")]
public static SecretKeyFactory GetInstance (String algorithm)

Parameters

algorithm
the name of the key algorithm.

Exceptions

TypeReason
NoSuchAlgorithmExceptionif no installed provider can provide the requested algorithm.
NullPointerExceptionif the specified algorithm is null.

Remarks

Creates a new SecretKeyFactory instance for the specified key algorithm.

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1