Language

KeyStore.Builder.NewInstance メソッド

定義

オーバーロード

Name 説明
NewInstance(File, KeyStore+IProtectionParameter)

新しい Builder オブジェクトを返します。

NewInstance(KeyStore, KeyStore+IProtectionParameter)

指定したBuilderと指定したKeyStoreを保持する新しいProtectionParameterを返します。

NewInstance(String, Provider, KeyStore+IProtectionParameter)

指定された引数に基づいて新しいBuilderを作成する新しいKeyStoreを返します。

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

指定された引数に基づいて新しいBuilderを作成する新しいKeyStoreを返します。

NewInstance(File, KeyStore+IProtectionParameter)

新しい Builder オブジェクトを返します。

[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

パラメーター

file
File

KeyStore データを含むファイル

protection
KeyStore.IProtectionParameter

KeyStore データをセキュリティで保護する ProtectionParameter

返品

新しい Builder オブジェクト

属性

注釈

新しい Builder オブジェクトを返します。 返されたビルダーで getKeyStore() メソッドを最初に呼び出すと、キーストアの種類を検出するファイルを使用して KeyStore が作成され、その load() メソッドが呼び出されます。 KeyStore.getInstance(File, LoadStoreParameter) の説明に従って、同じアルゴリズムを使用してキーストアの種類を決定します。 inputStream 引数はファイルから作成されます。 保護が PasswordProtection の場合、パスワードは getPassword メソッドを呼び出すことによって取得されます。 それ以外の場合、保護が CallbackHandlerProtection の場合、パスワードは CallbackHandler を呼び出すことによって取得されます。 getKeyStore() の後続の呼び出しでは、最初の呼び出しと同じオブジェクトが返されます。 最初の呼び出しが KeyStoreException で失敗した場合、後続の呼び出しでも KeyStoreException がスローされます。 getProtectionParameter() を呼び出すと、読み込みメソッドの呼び出しに使用されたパスワードをカプセル化する PasswordProtection オブジェクトが返されます。 getKeyStore() メソッドは、このメソッドを呼び出すコードの AccessControlContext 内で実行されることに注意してください。

Javaリファレンス。

適用対象

NewInstance(KeyStore, KeyStore+IProtectionParameter)

指定したBuilderと指定したKeyStoreを保持する新しい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

パラメーター

keyStore
KeyStore

開催する KeyStore 。

protectionParameter
KeyStore.IProtectionParameter

開催する ProtectionParameter 。

返品

新しい Builder オブジェクト

属性

例外

keyStoreまたはprotectionParameterがnull場合は。

指定された KeyStore が初期化されていない場合は。

注釈

指定された KeyStore をカプセル化する新しいビルダーを返します。 返されたオブジェクトの getKeyStore() メソッドは keyStore を返します。getProtectionParameter() メソッドは protectionParameters を返します。 これは、既存の KeyStore オブジェクトをビルダー ベースの API で使用する必要がある場合に便利です。

Javaリファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

NewInstance(String, Provider, KeyStore+IProtectionParameter)

指定された引数に基づいて新しいBuilderを作成する新しいKeyStoreを返します。

[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

パラメーター

type
String

構築する KeyStore の型。

provider
Provider

構築する KeyStore のプロバイダーは、おそらく null。

protection
KeyStore.IProtectionParameter

キーストアをセキュリティで保護する ProtectionParameter

返品

新しい Builder オブジェクト

属性

例外

typeまたはprotectionParameterがnull場合は。

protectionParameter PasswordProtectionまたはCallbackHandlerProtectionのインスタンスではなく、fileはファイルではないか、まったく存在しません。

注釈

新しい Builder オブジェクトを返します。 返されたビルダーで getKeyStore() メソッドを呼び出すたびに、型の新しい KeyStore オブジェクトが返されます。 その load() メソッドは、保護をカプセル化する LoadStoreParameter を使用して呼び出されます。 Null 以外の場合、KeyStore はプロバイダーからインスタンス化されます。 それ以外の場合は、インストールされているすべてのプロバイダーが検索されます。 getProtectionParameter() を呼び出すと、保護が返されます。 getKeyStore() メソッドは、このメソッドを呼び出すコードの AccessControlContext 内で実行されることに注意してください。

Javaリファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

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

指定された引数に基づいて新しいBuilderを作成する新しいKeyStoreを返します。

[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

パラメーター

type
String

構築する KeyStore の型。

provider
Provider

構築する KeyStore のプロバイダーは、おそらく null。

file
File

Fileのデータを含むKeyStore。

protection
KeyStore.IProtectionParameter

KeyStore データをセキュリティで保護する ProtectionParameter

返品

新しい Builder オブジェクト

属性

例外

type, protectionParameterまたはfileがnull場合は。

protectionParameter PasswordProtectionまたはCallbackHandlerProtectionのインスタンスではなく、fileはファイルではないか、まったく存在しません。

注釈

新しい Builder オブジェクトを返します。 返されたビルダーで getKeyStore() メソッドを最初に呼び出すと、型の KeyStore が作成され、その load() メソッドが呼び出されます。 inputStream 引数はファイルから作成されます。 保護が PasswordProtection の場合、パスワードは getPassword メソッドを呼び出すことによって取得されます。 それ以外の場合、保護が CallbackHandlerProtection の場合、パスワードは CallbackHandler を呼び出すことによって取得されます。 getKeyStore() の後続の呼び出しでは、最初の呼び出しと同じオブジェクトが返されます。 最初の呼び出しが KeyStoreException で失敗した場合、後続の呼び出しでも KeyStoreException がスローされます。 Null 以外の場合、KeyStore はプロバイダーからインスタンス化されます。 それ以外の場合は、インストールされているすべてのプロバイダーが検索されます。 getProtectionParameter() を呼び出すと、読み込みメソッドの呼び出しに使用されたパスワードをカプセル化する PasswordProtection オブジェクトが返されます。 getKeyStore() メソッドは、このメソッドを呼び出すコードの AccessControlContext 内で実行されることに注意してください。

Javaリファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象