SessionSecurityTokenHandler Constructors

Definition

Initializes a new instance of the SessionSecurityTokenHandler class.

Overloads

SessionSecurityTokenHandler()

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

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>)

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

SessionSecurityTokenHandler(ReadOnlyCollection<CookieTransform>, TimeSpan)

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

SessionSecurityTokenHandler()

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

public SessionSecurityTokenHandler ();

Remarks

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Parameters

transforms
ReadOnlyCollection<CookieTransform>

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

Exceptions

transforms is null.

Remarks

The TokenLifetime property is initialized to DefaultLifetime.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Parameters

transforms
ReadOnlyCollection<CookieTransform>

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

tokenLifetime
TimeSpan

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

Exceptions

transforms is null.

tokenLifetime is less than or equal to Zero.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1