MachineKeySessionSecurityTokenHandler Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the MachineKeySessionSecurityTokenHandler class.
Overloads
MachineKeySessionSecurityTokenHandler() |
Initializes a new instance of the MachineKeySessionSecurityTokenHandler class. |
MachineKeySessionSecurityTokenHandler(TimeSpan) |
Initializes a new instance of the MachineKeySessionSecurityTokenHandler class that has the specified default token lifetime. |
MachineKeySessionSecurityTokenHandler()
Initializes a new instance of the MachineKeySessionSecurityTokenHandler class.
public:
MachineKeySessionSecurityTokenHandler();
public MachineKeySessionSecurityTokenHandler ();
Public Sub New ()
Applies to
MachineKeySessionSecurityTokenHandler(TimeSpan)
Initializes a new instance of the MachineKeySessionSecurityTokenHandler class that has the specified default token lifetime.
public:
MachineKeySessionSecurityTokenHandler(TimeSpan tokenLifetime);
public MachineKeySessionSecurityTokenHandler (TimeSpan tokenLifetime);
new System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler : TimeSpan -> System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler
Public Sub New (tokenLifetime As TimeSpan)
Parameters
- tokenLifetime
- TimeSpan
The default lifetime for a token.
Exceptions
tokenLifetime
is shorter than or equal to Zero