次の方法で共有


X509Credentials2 クラス

public class X509Credentials2 extends SecurityCredentials

証明書パスを使用して指定された X.509 証明書に基づくセキュリティ資格情報を指定します。

コンストラクターの概要

コンストラクター 説明
X509Credentials2(String certificatePath)

system.fabric.X509Credentials2 クラスの新しいインスタンスを作成します。

メソッドの概要

修飾子と型 メソッドと説明
String getCertificateLoadPath()

証明書のファイル/フォルダーの場所を示します

ProtectionLevel getProtectionLevel()

通信の保護方法を取得します。既定値は です ENCRYPTANDSIGN

List<String> getRemoteCertThumbprints()

リモート X509Credentials の検証に使用されるリモート証明書の拇印の一覧を取得します

List<X509Name> getRemoteX509Names()

リモート X509Credentials を検証する X509Name の一覧を取得します

void setProtectionLevel(ProtectionLevel protectionLevel)

通信の保護方法を設定します。既定値は です ENCRYPTANDSIGN

継承メンバー

コンストラクターの詳細

X509Credentials2

public X509Credentials2(String certificatePath)

system.fabric.X509Credentials2 クラスの新しいインスタンスを作成します。

パラメーター:

certificatePath - X509 証明書の場所

メソッドの詳細

getCertificateLoadPath

public String getCertificateLoadPath()

証明書のファイル/フォルダーの場所を示します

戻り値:

名前証明書の場所。

getProtectionLevel

public ProtectionLevel getProtectionLevel()

通信の保護方法を取得します。既定値は です ENCRYPTANDSIGN

戻り値:

資格情報の保護レベル。

getRemoteCertThumbprints

public List getRemoteCertThumbprints()

リモート X509Credentials の検証に使用されるリモート証明書の拇印の一覧を取得します

戻り値:

リモート X509Credentials の検証に使用されるリモート証明書の拇印の一覧

getRemoteX509Names

public List getRemoteX509Names()

リモート X509Credentials を検証する X509Name の一覧を取得します

戻り値:

リモート X509Credentials を検証するための X509Name の一覧

setProtectionLevel

public void setProtectionLevel(ProtectionLevel protectionLevel)

通信の保護方法を設定します。既定値は です ENCRYPTANDSIGN

パラメーター:

protectionLevel - 資格情報の保護レベル。

適用対象