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);
[<Android.Runtime.Register("newInstance", "(Ljava/io/File;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;", "", ApiSince=33)>]
static member NewInstance : Java.IO.File * Java.Security.KeyStore.IProtectionParameter -> Java.Security.KeyStore.Builder

Parameters

file
File

Returns

Attributes

Applies to

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);
[<Android.Runtime.Register("newInstance", "(Ljava/security/KeyStore;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;", "")>]
static member NewInstance : Java.Security.KeyStore * Java.Security.KeyStore.IProtectionParameter -> Java.Security.KeyStore.Builder

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

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);
[<Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/security/Provider;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;", "")>]
static member NewInstance : string * Java.Security.Provider * Java.Security.KeyStore.IProtectionParameter -> Java.Security.KeyStore.Builder

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

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);
[<Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/security/Provider;Ljava/io/File;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;", "")>]
static member NewInstance : string * Java.Security.Provider * Java.IO.File * Java.Security.KeyStore.IProtectionParameter -> Java.Security.KeyStore.Builder

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