GenericXmlSecurityToken コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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 を表す XmlElement 。 TokenXml プロパティを設定します。
- proofToken
- SecurityToken
セキュリティ トークンの証明トークンを表す SecurityToken 。 ProofToken プロパティを設定します。
- internalTokenReference
- SecurityKeyIdentifierClause
このセキュリティ トークンが参照先の SOAP メッセージに含まれている場合に、このセキュリティ トークンへの参照を表す SecurityKeyIdentifierClause 。 InternalTokenReference プロパティを設定します。
- externalTokenReference
- SecurityKeyIdentifierClause
このセキュリティ トークンが参照先の SOAP メッセージに含まれていない場合に、このセキュリティ トークンへの参照を表す SecurityKeyIdentifierClause 。 ValidFrom プロパティを設定します。
- authorizationPolicies
- ReadOnlyCollection<IAuthorizationPolicy>
このセキュリティ トークンのセット承認ポリシーを含むIAuthorizationPolicy型のReadOnlyCollection<T>。
例外
注釈
internalTokenReference パラメーターがnullされると、このセキュリティ トークンに対してLocalIdKeyIdentifierClauseキー識別子句が作成され、InternalTokenReference プロパティに設定されます。
フェデレーション シナリオで GenericXmlSecurityToken が取得されると、証明トークンには、クライアント用に暗号化されたキーが含まれます。