WindowsSecurityToken.Initialize メソッド

定義

WindowsSecurityToken クラスの新しいインスタンスを初期化します。

オーバーロード

Initialize(String, DateTime, DateTime, WindowsIdentity, Boolean)

指定した一意の識別子、Windows ユーザー、およびセキュリティ トークンの有効期間の開始時点と終了時点を使用して、WindowsSecurityToken クラスの新しいインスタンスを初期化します。

Initialize(String, String, DateTime, DateTime, WindowsIdentity, Boolean)

WindowsSecurityToken クラスの新しいインスタンスを初期化します。

Initialize(String, DateTime, DateTime, WindowsIdentity, Boolean)

指定した一意の識別子、Windows ユーザー、およびセキュリティ トークンの有効期間の開始時点と終了時点を使用して、WindowsSecurityToken クラスの新しいインスタンスを初期化します。

protected:
 void Initialize(System::String ^ id, DateTime effectiveTime, DateTime expirationTime, System::Security::Principal::WindowsIdentity ^ windowsIdentity, bool clone);
protected void Initialize (string id, DateTime effectiveTime, DateTime expirationTime, System.Security.Principal.WindowsIdentity windowsIdentity, bool clone);
member this.Initialize : string * DateTime * DateTime * System.Security.Principal.WindowsIdentity * bool -> unit
Protected Sub Initialize (id As String, effectiveTime As DateTime, expirationTime As DateTime, windowsIdentity As WindowsIdentity, clone As Boolean)

パラメーター

id
String

セキュリティ トークンの一意の識別子。 Id プロパティの値を設定します。

effectiveTime
DateTime

このセキュリティ トークンの有効期間の開始時点を示す DateTimeValidFrom プロパティの値を設定します。

expirationTime
DateTime

このセキュリティ トークンの有効期間の終了の時点を示す DateTimeValidTo プロパティの値を設定します。

windowsIdentity
WindowsIdentity

Windows ユーザーを表す WindowsIdentityWindowsIdentity プロパティの値を設定します。

clone
Boolean

windowsIdentity パラメーターと同じ WindowsIdentity オブジェクトを作成し、それを WindowsIdentity プロパティに割り当てる場合は true。それ以外の場合は、windowsIdentity パラメーターの値を WindowsIdentity プロパティに割り当てます。

例外

windowsIdentitynullです。

または

idnullです。

注釈

Initialize メソッドは、WindowsSecurityToken クラスのコンストラクターによって呼び出されます。

適用対象

Initialize(String, String, DateTime, DateTime, WindowsIdentity, Boolean)

WindowsSecurityToken クラスの新しいインスタンスを初期化します。

protected:
 void Initialize(System::String ^ id, System::String ^ authenticationType, DateTime effectiveTime, DateTime expirationTime, System::Security::Principal::WindowsIdentity ^ windowsIdentity, bool clone);
protected void Initialize (string id, string authenticationType, DateTime effectiveTime, DateTime expirationTime, System.Security.Principal.WindowsIdentity windowsIdentity, bool clone);
member this.Initialize : string * string * DateTime * DateTime * System.Security.Principal.WindowsIdentity * bool -> unit
Protected Sub Initialize (id As String, authenticationType As String, effectiveTime As DateTime, expirationTime As DateTime, windowsIdentity As WindowsIdentity, clone As Boolean)

パラメーター

id
String

セキュリティ トークンの一意の識別子。

authenticationType
String

セキュリティ トークンの認証の種類。

effectiveTime
DateTime

このセキュリティ トークンの有効期間の開始時点を示す DateTime

expirationTime
DateTime

このセキュリティ トークンの有効期間の終了の時点を示す DateTime

windowsIdentity
WindowsIdentity

Windows ユーザーを表します。

clone
Boolean

windowsIdentity パラメーターと同じ WindowsIdentity オブジェクトを作成し、それを WindowsIdentity プロパティに割り当てる場合は true。それ以外の場合は、windowsIdentity パラメーターの値を WindowsIdentity プロパティに割り当てます。

適用対象