SupportingTokenSpecification 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SupportingTokenSpecification 类的新实例。
重载
SupportingTokenSpecification(SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>, SecurityTokenAttachmentMode)
初始化 SupportingTokenSpecification 类的新实例。
public:
SupportingTokenSpecification(System::IdentityModel::Tokens::SecurityToken ^ token, System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ tokenPolicies, System::ServiceModel::Security::SecurityTokenAttachmentMode attachmentMode);
public SupportingTokenSpecification (System.IdentityModel.Tokens.SecurityToken token, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> tokenPolicies, System.ServiceModel.Security.SecurityTokenAttachmentMode attachmentMode);
new System.ServiceModel.Security.SupportingTokenSpecification : System.IdentityModel.Tokens.SecurityToken * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> * System.ServiceModel.Security.SecurityTokenAttachmentMode -> System.ServiceModel.Security.SupportingTokenSpecification
Public Sub New (token As SecurityToken, tokenPolicies As ReadOnlyCollection(Of IAuthorizationPolicy), attachmentMode As SecurityTokenAttachmentMode)
参数
- token
- SecurityToken
安全令牌。
- tokenPolicies
- ReadOnlyCollection<IAuthorizationPolicy>
安全令牌策略的集合。
- attachmentMode
- SecurityTokenAttachmentMode
安全令牌附件模式。
例外
attachmentMode
为 null
。
适用于
SupportingTokenSpecification(SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>, SecurityTokenAttachmentMode, SecurityTokenParameters)
初始化 SupportingTokenSpecification 类的新实例。
public:
SupportingTokenSpecification(System::IdentityModel::Tokens::SecurityToken ^ token, System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ tokenPolicies, System::ServiceModel::Security::SecurityTokenAttachmentMode attachmentMode, System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ tokenParameters);
public SupportingTokenSpecification (System.IdentityModel.Tokens.SecurityToken token, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> tokenPolicies, System.ServiceModel.Security.SecurityTokenAttachmentMode attachmentMode, System.ServiceModel.Security.Tokens.SecurityTokenParameters tokenParameters);
new System.ServiceModel.Security.SupportingTokenSpecification : System.IdentityModel.Tokens.SecurityToken * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> * System.ServiceModel.Security.SecurityTokenAttachmentMode * System.ServiceModel.Security.Tokens.SecurityTokenParameters -> System.ServiceModel.Security.SupportingTokenSpecification
Public Sub New (token As SecurityToken, tokenPolicies As ReadOnlyCollection(Of IAuthorizationPolicy), attachmentMode As SecurityTokenAttachmentMode, tokenParameters As SecurityTokenParameters)
参数
- token
- SecurityToken
安全令牌。
- tokenPolicies
- ReadOnlyCollection<IAuthorizationPolicy>
安全令牌策略的集合。
- attachmentMode
- SecurityTokenAttachmentMode
安全令牌附件模式。
- tokenParameters
- SecurityTokenParameters
控制安全令牌的绑定元素的参数。