SessionSecurityTokenHandler SessionSecurityTokenHandler SessionSecurityTokenHandler SessionSecurityTokenHandler Constructors

Definition

Overloads

SessionSecurityTokenHandler() SessionSecurityTokenHandler() SessionSecurityTokenHandler()

Initializes a new instance of the SessionSecurityTokenHandler class that uses the default cookie transforms and token lifetime.

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>)

Initializes a new instance of the SessionSecurityTokenHandler class that uses the specified cookie transforms.

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan)

Initializes a new instance of the SessionSecurityTokenHandler class that uses the specified cookie transforms and token lifetime.

SessionSecurityTokenHandler() SessionSecurityTokenHandler() SessionSecurityTokenHandler()

Initializes a new instance of the SessionSecurityTokenHandler class that uses the default cookie transforms and token lifetime.

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

Remarks

The TokenLifetime and Transforms properties are initialized to DefaultLifetime and DefaultCookieTransforms.

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>)

Initializes a new instance of the SessionSecurityTokenHandler class that uses the specified cookie transforms.

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))

Parameters

transforms
ReadOnlyCollection<CookieTransform>

The transforms to apply when encoding or decoding the cookie. Sets the Transforms property.

Exceptions

Remarks

The TokenLifetime property is initialized to DefaultLifetime.

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan) SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan)

Initializes a new instance of the SessionSecurityTokenHandler class that uses the specified cookie transforms and token lifetime.

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)

Parameters

transforms
ReadOnlyCollection<CookieTransform>

The transforms to apply when encoding or decoding the cookie. Sets the Transforms property.

tokenLifetime
TimeSpan TimeSpan TimeSpan TimeSpan

The default lifetime for a token. Sets the TokenLifetime property.

Exceptions

Applies to