Share via


GenericXmlSecurityToken コンストラクター

定義

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

public:
 GenericXmlSecurityToken(System::Xml::XmlElement ^ tokenXml, System::IdentityModel::Tokens::SecurityToken ^ proofToken, DateTime effectiveTime, DateTime expirationTime, System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ internalTokenReference, System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ externalTokenReference, System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ authorizationPolicies);
public GenericXmlSecurityToken (System.Xml.XmlElement tokenXml, System.IdentityModel.Tokens.SecurityToken proofToken, DateTime effectiveTime, DateTime expirationTime, System.IdentityModel.Tokens.SecurityKeyIdentifierClause internalTokenReference, System.IdentityModel.Tokens.SecurityKeyIdentifierClause externalTokenReference, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> authorizationPolicies);
new System.IdentityModel.Tokens.GenericXmlSecurityToken : System.Xml.XmlElement * System.IdentityModel.Tokens.SecurityToken * DateTime * DateTime * System.IdentityModel.Tokens.SecurityKeyIdentifierClause * System.IdentityModel.Tokens.SecurityKeyIdentifierClause * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> -> System.IdentityModel.Tokens.GenericXmlSecurityToken
Public Sub New (tokenXml As XmlElement, proofToken As SecurityToken, effectiveTime As DateTime, expirationTime As DateTime, internalTokenReference As SecurityKeyIdentifierClause, externalTokenReference As SecurityKeyIdentifierClause, authorizationPolicies As ReadOnlyCollection(Of IAuthorizationPolicy))

パラメーター

tokenXml
XmlElement

セキュリティ トークンに関連付けられている XML を表す XmlElementTokenXml プロパティを設定します。

proofToken
SecurityToken

セキュリティ トークンの証明トークンを表す SecurityTokenProofToken プロパティを設定します。

effectiveTime
DateTime

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

expirationTime
DateTime

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

internalTokenReference
SecurityKeyIdentifierClause

このセキュリティ トークンへの参照が SOAP メッセージに含まれている場合に、その参照を表す SecurityKeyIdentifierClauseInternalTokenReference プロパティを設定します。

externalTokenReference
SecurityKeyIdentifierClause

このセキュリティ トークンへの参照が SOAP メッセージに含まれていない場合に、その参照を表す SecurityKeyIdentifierClauseValidFrom プロパティを設定します。

authorizationPolicies
ReadOnlyCollection<IAuthorizationPolicy>

このセキュリティ トークンの一連の承認ポリシーを格納する ReadOnlyCollection<T> 型の IAuthorizationPolicy

例外

tokenXmlnullです。

または

proofTokennull です。

注釈

internalTokenReference パラメーターが null の場合は、このセキュリティ トークン用の LocalIdKeyIdentifierClause キー識別句が作成され、InternalTokenReference プロパティに設定されます。

フェデレーション シナリオで GenericXmlSecurityToken が取得された場合、証明トークンには、クライアントのために暗号化されたキーが格納されます。

適用対象