Edit

Share via


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();
public SessionSecurityTokenHandler ();
Public Sub New ()

Remarks

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

Applies to

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

transforms is null.

Remarks

The TokenLifetime property is initialized to DefaultLifetime.

Applies to

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

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

Exceptions

transforms is null.

tokenLifetime is less than or equal to Zero.

Applies to