KeyStore.Builder.NewInstance Method

Definition

Overloads

NewInstance(File, KeyStore+IProtectionParameter)
NewInstance(KeyStore, KeyStore+IProtectionParameter)

Returns a new Builder that holds the given KeyStore and the given ProtectionParameter.

NewInstance(String, Provider, KeyStore+IProtectionParameter)

Returns a new Builder that creates a new KeyStore based on the provided arguments.

NewInstance(String, Provider, File, KeyStore+IProtectionParameter)

Returns a new Builder that creates a new KeyStore based on the provided arguments.

NewInstance(File, KeyStore+IProtectionParameter)

[Android.Runtime.Register("newInstance", "(Ljava/io/File;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;", "", ApiSince=33)]
public static Java.Security.KeyStore.Builder NewInstance(Java.IO.File file, Java.Security.KeyStore.IProtectionParameter protection);

Parameters

file
File

Returns

Attributes

Applies to

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36

NewInstance(KeyStore, KeyStore+IProtectionParameter)

Returns a new Builder that holds the given KeyStore and the given ProtectionParameter.

[Android.Runtime.Register("newInstance", "(Ljava/security/KeyStore;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;", "")]
public static Java.Security.KeyStore.Builder NewInstance(Java.Security.KeyStore keyStore, Java.Security.KeyStore.IProtectionParameter protectionParameter);

Parameters

keyStore
KeyStore

the KeyStore to be held.

protectionParameter
KeyStore.IProtectionParameter

the ProtectionParameter to be held.

Returns

Attributes

Exceptions

if keyStore or protectionParameter is null.

if the given KeyStore is not initialized.

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

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36

NewInstance(String, Provider, KeyStore+IProtectionParameter)

Returns a new Builder that creates a new KeyStore based on the provided arguments.

[Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/security/Provider;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;", "")]
public static Java.Security.KeyStore.Builder NewInstance(string type, Java.Security.Provider provider, Java.Security.KeyStore.IProtectionParameter protection);

Parameters

type
String

the type of the KeyStore to be constructed.

provider
Provider

the provider of the KeyStore to be constructed, maybe null.

Returns

Attributes

Exceptions

if type or protectionParameter is null.

protectionParameter not an instance of either PasswordProtection or CallbackHandlerProtection, file is not a file or does not exist at all.

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

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36

NewInstance(String, Provider, File, KeyStore+IProtectionParameter)

Returns a new Builder that creates a new KeyStore based on the provided arguments.

[Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/security/Provider;Ljava/io/File;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;", "")]
public static Java.Security.KeyStore.Builder NewInstance(string type, Java.Security.Provider provider, Java.IO.File file, Java.Security.KeyStore.IProtectionParameter protection);

Parameters

type
String

the type of the KeyStore to be constructed.

provider
Provider

the provider of the KeyStore to be constructed, maybe null.

file
File

the File that contains the data for the KeyStore.

Returns

Attributes

Exceptions

if type, protectionParameter or file is null.

protectionParameter not an instance of either PasswordProtection or CallbackHandlerProtection, file is not a file or does not exist at all.

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

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36