SecurityTokenValidatedEventArgs 类

定义

SecurityTokenValidated 事件提供数据。Provides data for the SecurityTokenValidated event.

public ref class SecurityTokenValidatedEventArgs : System::ComponentModel::CancelEventArgs
public class SecurityTokenValidatedEventArgs : System.ComponentModel.CancelEventArgs
type SecurityTokenValidatedEventArgs = class
    inherit CancelEventArgs
Public Class SecurityTokenValidatedEventArgs
Inherits CancelEventArgs
继承
SecurityTokenValidatedEventArgs

注解

在登录过程中验证从 security token service (STS)收到的令牌后,将引发事件。The event is raised just after the issued token that was received from the security token service (STS) is validated during sign-in. 您可以通过使用属性来访问在验证期间创建的主体 ClaimsPrincipal ,并修改或替换它。You can access the principal that was created during validation by using the ClaimsPrincipal property and either modify or replace it. 可以将属性设置 Cancel 为取消对登录响应消息的处理。You can set the Cancel property to cancel processing of the sign-in response message.

构造函数

SecurityTokenValidatedEventArgs(ClaimsPrincipal)

初始化 SecurityTokenValidatedEventArgs 类的新实例。Initializes a new instance of the SecurityTokenValidatedEventArgs class.

属性

Cancel

获取或设置指示是否应取消事件的值。Gets or sets a value indicating whether the event should be canceled.

(继承自 CancelEventArgs)
ClaimsPrincipal

获取或设置从令牌验证中产生的 ClaimsPrincipalGets or sets the ClaimsPrincipal that results from token validation.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅