SessionSecurityTokenReceivedEventArgs Classe

Definição

Fornece dados para o evento de SessionSecurityTokenReceived .Provides data for the SessionSecurityTokenReceived event.

public ref class SessionSecurityTokenReceivedEventArgs : System::ComponentModel::CancelEventArgs
public class SessionSecurityTokenReceivedEventArgs : System.ComponentModel.CancelEventArgs
type SessionSecurityTokenReceivedEventArgs = class
    inherit CancelEventArgs
Public Class SessionSecurityTokenReceivedEventArgs
Inherits CancelEventArgs
Herança
SessionSecurityTokenReceivedEventArgs

Comentários

Por padrão, o SessionSecurityTokenReceived evento é gerado de dentro do SessionAuthenticationModule.OnAuthenticateRequest método após um token de sessão ( SessionSecurityToken ) ter sido lido com êxito do cookie de sessão.By default, the SessionSecurityTokenReceived event is raised from within the SessionAuthenticationModule.OnAuthenticateRequest method after a session token (SessionSecurityToken) has been successfully read from the session cookie. No manipulador de eventos, você pode modificar as propriedades do token de sessão antes que ele seja passado além do pipeline e seja usado para autenticar a entidade que faz a solicitação (usuário).In the event handler, you can modify properties of the session token before it is passed further along the pipeline and is used to authenticate the entity making the request (user).

Você pode acessar o token por meio da SessionToken propriedade.You can access the token through the SessionToken property. Depois de modificar o token, você pode garantir que ele seja gravado novamente no cookie, definindo o ReissueCookie para true .After modifying the token, you can ensure that it is written back to the cookie by setting the ReissueCookie to true. Por fim, o SessionSecurityTokenReceived evento é um evento cancelável e você pode definir a Cancel Propriedade (herdada de CancelEventArgs ) para anular o processamento adicional da solicitação.Finally, the SessionSecurityTokenReceived event is a cancelable event, and you can set the Cancel property (inherited from CancelEventArgs) to abort further processing of the request.

Construtores

SessionSecurityTokenReceivedEventArgs(SessionSecurityToken)

Inicializa uma nova instância da classe SecurityTokenReceivedEventArgs que tem o token de sessão especificado.Initializes a new instance of the SecurityTokenReceivedEventArgs class that has the specified session token.

Propriedades

Cancel

Obtém ou define um valor que indica se o evento deve ser cancelado.Gets or sets a value indicating whether the event should be canceled.

(Herdado de CancelEventArgs)
ReissueCookie

Obtém ou define um valor que especifica se o cookie de sessão com a resposta deve ser emitido novamente.Gets or sets a value that specifies whether to reissue the session cookie with the response.

SessionToken

Obtém ou define token de segurança de sessão que foi recebido.Gets or sets the session security token that was received.

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Aplica-se a