Udostępnij za pośrednictwem


SessionSecurityTokenHandler Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy SessionSecurityTokenHandler.

Przeciążenia

Nazwa Opis
SessionSecurityTokenHandler()

Inicjuje SessionSecurityTokenHandler nowe wystąpienie klasy, które używa domyślnych przekształceń plików cookie i okresu istnienia tokenu.

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>)

Inicjuje SessionSecurityTokenHandler nowe wystąpienie klasy, która używa określonych przekształceń plików cookie.

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan)

Inicjuje SessionSecurityTokenHandler nowe wystąpienie klasy, która używa określonych przekształceń plików cookie i okresu istnienia tokenu.

SessionSecurityTokenHandler()

Inicjuje SessionSecurityTokenHandler nowe wystąpienie klasy, które używa domyślnych przekształceń plików cookie i okresu istnienia tokenu.

public:
 SessionSecurityTokenHandler();
public SessionSecurityTokenHandler();
Public Sub New ()

Uwagi

Właściwości TokenLifetime i Transforms są inicjowane do DefaultLifetime i DefaultCookieTransforms.

Dotyczy

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>)

Inicjuje SessionSecurityTokenHandler nowe wystąpienie klasy, która używa określonych przekształceń plików cookie.

public:
 SessionSecurityTokenHandler(System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::CookieTransform ^> ^ transforms);
public SessionSecurityTokenHandler(System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.CookieTransform> transforms);
new System.IdentityModel.Tokens.SessionSecurityTokenHandler : System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.CookieTransform> -> System.IdentityModel.Tokens.SessionSecurityTokenHandler
Public Sub New (transforms As ReadOnlyCollection(Of CookieTransform))

Parametry

transforms
ReadOnlyCollection<CookieTransform>

Przekształcenia, które mają być stosowane podczas kodowania lub dekodowania pliku cookie. Ustawia właściwość Transforms.

Wyjątki

Parametr transforms ma wartość null.

Uwagi

Właściwość TokenLifetime jest inicjowana na DefaultLifetime.

Dotyczy

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan)

Inicjuje SessionSecurityTokenHandler nowe wystąpienie klasy, która używa określonych przekształceń plików cookie i okresu istnienia tokenu.

public:
 SessionSecurityTokenHandler(System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::CookieTransform ^> ^ transforms, TimeSpan tokenLifetime);
public SessionSecurityTokenHandler(System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.CookieTransform> transforms, TimeSpan tokenLifetime);
new System.IdentityModel.Tokens.SessionSecurityTokenHandler : System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.CookieTransform> * TimeSpan -> System.IdentityModel.Tokens.SessionSecurityTokenHandler
Public Sub New (transforms As ReadOnlyCollection(Of CookieTransform), tokenLifetime As TimeSpan)

Parametry

transforms
ReadOnlyCollection<CookieTransform>

Przekształcenia, które mają być stosowane podczas kodowania lub dekodowania pliku cookie. Ustawia właściwość Transforms.

tokenLifetime
TimeSpan

Domyślny okres istnienia tokenu. Ustawia właściwość TokenLifetime.

Wyjątki

Parametr transforms ma wartość null.

tokenLifetime wartość jest mniejsza niż lub równa Zero.

Dotyczy