SecurityTokenSpecification 构造函数

定义

使用指定的标记和标记策略初始化 SecurityTokenSpecification 类的新实例。

public:
 SecurityTokenSpecification(System::IdentityModel::Tokens::SecurityToken ^ token, System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ tokenPolicies);
public SecurityTokenSpecification (System.IdentityModel.Tokens.SecurityToken token, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> tokenPolicies);
new System.ServiceModel.Security.SecurityTokenSpecification : System.IdentityModel.Tokens.SecurityToken * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> -> System.ServiceModel.Security.SecurityTokenSpecification
Public Sub New (token As SecurityToken, tokenPolicies As ReadOnlyCollection(Of IAuthorizationPolicy))

参数

token
SecurityToken

安全令牌。

tokenPolicies
ReadOnlyCollection<IAuthorizationPolicy>

安全令牌策略的集合。

例外

tokenPoliciesnull

适用于