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/security/Provider;)Ljava/security/KeyStore;", "")]
public static KeyStore GetInstance (string type, Provider provider)

See Also

KeyStore.DefaultType

Parameters

type
the type of the returned KeyStore.
provider
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.Lang.IllegalArgumentExceptionif provider is null or the empty string.
Java.Lang.NullPointerExceptionif type == null (instead of NoSuchAlgorithmException) as in 1.4 release

Remarks

Returns a new instance of KeyStore from the specified provider with the given type. The provider supplied does not have to be registered.

[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