次の方法で共有


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>

このセキュリティ トークンのセット承認ポリシーを含むIAuthorizationPolicy型のReadOnlyCollection<T>

例外

tokenXmlnullです。

-又は-

proofTokennullです。

注釈

internalTokenReference パラメーターがnullされると、このセキュリティ トークンに対してLocalIdKeyIdentifierClauseキー識別子句が作成され、InternalTokenReference プロパティに設定されます。

フェデレーション シナリオで GenericXmlSecurityToken が取得されると、証明トークンには、クライアント用に暗号化されたキーが含まれます。

適用対象