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
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for