SecureRandom.GetInstance メソッド

定義

オーバーロード

名前 説明
GetInstance(String, ISecureRandomParameters, Provider)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装し、指定したSecureRandomParameters要求をサポートするSecureRandom オブジェクトを返します。

GetInstance(String, String)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装する SecureRandom オブジェクトを返します。

GetInstance(String, ISecureRandomParameters, String)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装し、指定したSecureRandomParameters要求をサポートするSecureRandom オブジェクトを返します。

GetInstance(String, ISecureRandomParameters)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装し、指定したSecureRandomParameters要求をサポートするSecureRandom オブジェクトを返します。

GetInstance(String)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装する SecureRandom オブジェクトを返します。

GetInstance(String, Provider)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装する SecureRandom オブジェクトを返します。

GetInstance(String, ISecureRandomParameters, Provider)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装し、指定したSecureRandomParameters要求をサポートするSecureRandom オブジェクトを返します。

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/SecureRandomParameters;Ljava/security/Provider;)Ljava/security/SecureRandom;", "", ApiSince=35)]
public static Java.Security.SecureRandom? GetInstance(string? algorithm, Java.Security.ISecureRandomParameters? params, Java.Security.Provider? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/SecureRandomParameters;Ljava/security/Provider;)Ljava/security/SecureRandom;", "", ApiSince=35)>]
static member GetInstance : string * Java.Security.ISecureRandomParameters * Java.Security.Provider -> Java.Security.SecureRandom

パラメーター

algorithm
String

RNG アルゴリズムの名前。 標準 RNG アルゴリズム名の詳細については、「Java セキュリティ標準アルゴリズム名の仕様」の「SecureRandom」セクションを参照してください。

params
ISecureRandomParameters

新しく作成されたSecureRandom オブジェクトSecureRandomParametersがサポートされている必要があります。

provider
Provider

プロバイダー。

返品

新しい SecureRandom オブジェクト

属性

注釈

指定した乱数ジェネレーター (RNG) アルゴリズムを実装し、指定したSecureRandomParameters要求をサポートするSecureRandom オブジェクトを返します。

指定したProvider オブジェクトからSecureRandomSpi実装をカプセル化する新しいSecureRandom オブジェクトが返されます。 指定した Provider オブジェクトをプロバイダーリストに登録する必要はありません。

9 に追加されました。

Javaドキュメント。

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

適用対象

GetInstance(String, String)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装する SecureRandom オブジェクトを返します。

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/SecureRandom;", "")]
public static Java.Security.SecureRandom? GetInstance(string? algorithm, string? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/SecureRandom;", "")>]
static member GetInstance : string * string -> Java.Security.SecureRandom

パラメーター

algorithm
String

RNG アルゴリズムの名前。 標準 RNG アルゴリズム名の詳細については、「Java セキュリティ標準アルゴリズム名の仕様」の「SecureRandom」セクションを参照してください。

provider
String

プロバイダーの名前。

返品

新しい SecureRandom オブジェクト

属性

例外

指定したアルゴリズムが使用できない場合は 。

指定したプロバイダーが使用できない場合は 。

algorithmnullされている場合は >。

もし provider == null || provider.isEmpty()

注釈

指定した乱数ジェネレーター (RNG) アルゴリズムを実装する SecureRandom オブジェクトを返します。

指定したプロバイダーからのSecureRandomSpi実装をカプセル化する新しいSecureRandom オブジェクトが返されます。 指定したプロバイダーは、セキュリティ プロバイダーの一覧に登録する必要があります。

登録済みプロバイダーの一覧は、 Security#getProviders() Security.getProviders() メソッドを使用して取得できます。

1.2 で追加されました。

Javaドキュメント。

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

適用対象

GetInstance(String, ISecureRandomParameters, String)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装し、指定したSecureRandomParameters要求をサポートするSecureRandom オブジェクトを返します。

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/SecureRandomParameters;Ljava/lang/String;)Ljava/security/SecureRandom;", "", ApiSince=35)]
public static Java.Security.SecureRandom? GetInstance(string? algorithm, Java.Security.ISecureRandomParameters? params, string? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/SecureRandomParameters;Ljava/lang/String;)Ljava/security/SecureRandom;", "", ApiSince=35)>]
static member GetInstance : string * Java.Security.ISecureRandomParameters * string -> Java.Security.SecureRandom

パラメーター

algorithm
String

RNG アルゴリズムの名前。 標準 RNG アルゴリズム名の詳細については、「Java セキュリティ標準アルゴリズム名の仕様」の「SecureRandom」セクションを参照してください。

params
ISecureRandomParameters

新しく作成されたSecureRandom オブジェクトSecureRandomParametersがサポートされている必要があります。

provider
String

プロバイダーの名前。

返品

新しい SecureRandom オブジェクト

属性

注釈

指定した乱数ジェネレーター (RNG) アルゴリズムを実装し、指定したSecureRandomParameters要求をサポートするSecureRandom オブジェクトを返します。

指定したプロバイダーからのSecureRandomSpi実装をカプセル化する新しいSecureRandom オブジェクトが返されます。 指定したプロバイダーは、セキュリティ プロバイダーの一覧に登録する必要があります。

登録済みプロバイダーの一覧は、 Security#getProviders() Security.getProviders() メソッドを使用して取得できます。

9 に追加されました。

Javaドキュメント。

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

適用対象

GetInstance(String, ISecureRandomParameters)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装し、指定したSecureRandomParameters要求をサポートするSecureRandom オブジェクトを返します。

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/SecureRandomParameters;)Ljava/security/SecureRandom;", "", ApiSince=35)]
public static Java.Security.SecureRandom? GetInstance(string? algorithm, Java.Security.ISecureRandomParameters? params);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/SecureRandomParameters;)Ljava/security/SecureRandom;", "", ApiSince=35)>]
static member GetInstance : string * Java.Security.ISecureRandomParameters -> Java.Security.SecureRandom

パラメーター

algorithm
String

RNG アルゴリズムの名前。 標準 RNG アルゴリズム名の詳細については、「Java セキュリティ標準アルゴリズム名の仕様」の「SecureRandom」セクションを参照してください。

params
ISecureRandomParameters

新しく作成されたSecureRandom オブジェクトSecureRandomParametersがサポートされている必要があります。

返品

新しい SecureRandom オブジェクト

属性

注釈

指定した乱数ジェネレーター (RNG) アルゴリズムを実装し、指定したSecureRandomParameters要求をサポートするSecureRandom オブジェクトを返します。

このメソッドは、登録されているセキュリティ プロバイダーの一覧を、最も優先されるプロバイダーから順に走査します。 指定したアルゴリズムをサポートし、指定したSecureRandomParametersをサポートする最初のプロバイダーからのSecureRandomSpi実装をカプセル化する新しいSecureRandom オブジェクトが返されます。

登録済みプロバイダーの一覧は、 Security#getProviders() Security.getProviders() メソッドを使用して取得できます。

9 に追加されました。

Javaドキュメント。

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

適用対象

GetInstance(String)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装する SecureRandom オブジェクトを返します。

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljava/security/SecureRandom;", "")]
public static Java.Security.SecureRandom? GetInstance(string? algorithm);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljava/security/SecureRandom;", "")>]
static member GetInstance : string -> Java.Security.SecureRandom

パラメーター

algorithm
String

RNG アルゴリズムの名前。 標準 RNG アルゴリズム名の詳細については、「Java セキュリティ標準アルゴリズム名の仕様」の「SecureRandom」セクションを参照してください。

返品

新しい SecureRandom オブジェクト

属性

例外

指定したアルゴリズムが使用できない場合は 。

algorithmnullされている場合は >。

注釈

指定した乱数ジェネレーター (RNG) アルゴリズムを実装する SecureRandom オブジェクトを返します。

このメソッドは、登録されているセキュリティ プロバイダーの一覧を、最も優先されるプロバイダーから順に走査します。 指定したアルゴリズムをサポートする最初のプロバイダーからのSecureRandomSpi実装をカプセル化する新しいSecureRandom オブジェクトが返されます。

登録済みプロバイダーの一覧は、 Security#getProviders() Security.getProviders() メソッドを使用して取得できます。

1.2 で追加されました。

Javaドキュメント。

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

適用対象

GetInstance(String, Provider)

指定した乱数ジェネレーター (RNG) アルゴリズムを実装する SecureRandom オブジェクトを返します。

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/SecureRandom;", "")]
public static Java.Security.SecureRandom? GetInstance(string? algorithm, Java.Security.Provider? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/SecureRandom;", "")>]
static member GetInstance : string * Java.Security.Provider -> Java.Security.SecureRandom

パラメーター

algorithm
String

RNG アルゴリズムの名前。 標準 RNG アルゴリズム名の詳細については、「Java セキュリティ標準アルゴリズム名の仕様」の「SecureRandom」セクションを参照してください。

provider
Provider

プロバイダー。

返品

新しい SecureRandom オブジェクト

属性

例外

指定したアルゴリズムが使用できない場合は 。

algorithmnullされている場合は >。

もし provider == null

注釈

指定した乱数ジェネレーター (RNG) アルゴリズムを実装する SecureRandom オブジェクトを返します。

指定したProvider オブジェクトからSecureRandomSpi実装をカプセル化する新しいSecureRandom オブジェクトが返されます。 指定した Provider オブジェクトをプロバイダーリストに登録する必要はありません。

1.4 で追加されました。

Javaドキュメント。

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

適用対象