Java.Security.KeyStore.GetInstance Method
Returns a new instance of KeyStore from the specified provider with the given type.

Syntax

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;", "")]
public static KeyStore GetInstance (string type, string provider)

See Also

KeyStore.DefaultType

Parameters

type
the type of the returned KeyStore.
provider
name of the provider of the KeyStore.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.KeyStoreExceptionif an error occurred during the creation of the new KeyStore.
Java.Security.NoSuchProviderExceptionif the specified provider is not available.
Java.Lang.IllegalArgumentExceptionif provider == null || provider.isEmpty()
Java.Lang.NullPointerExceptionif type is null (instead of NoSuchAlgorithmException) as in 1.4 release

Remarks

Returns a new instance of KeyStore from the specified provider with the given type.

[Android Documentation]

Requirements

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