Class SecurityTokenSettings
Specifies a set of features to support on the SecurityToken object created by the Create(SecurityTokenSettings) method.
Inheritance
Namespace: Cuemon.Security
Assembly: Cuemon.Security.dll
Syntax
public sealed class SecurityTokenSettings
Constructors
| Improve this DocSecurityTokenSettings()
Initializes a new instance of the SecurityTokenSettings class.
Declaration
public SecurityTokenSettings()
SecurityTokenSettings(TimeSpan)
Initializes a new instance of the SecurityToken class.
Declaration
public SecurityTokenSettings(TimeSpan timeToLive)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeToLive | The amount of time this token remains usable. Default is 15 seconds. |
SecurityTokenSettings(TimeSpan, Int32)
Initializes a new instance of the SecurityToken class.
Declaration
public SecurityTokenSettings(TimeSpan timeToLive, int lengthOfToken)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeToLive | The amount of time this token remains usable. |
System.Int32 | lengthOfToken | The length of the random generated token. Default is 24. |
SecurityTokenSettings(TimeSpan, Int32, String)
Initializes a new instance of the SecurityTokenSettings class.
Declaration
public SecurityTokenSettings(TimeSpan timeToLive, int lengthOfToken, string reference)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeToLive | The amount of time this token remains usable. |
System.Int32 | lengthOfToken | The length of the random generated token. Default is 24. |
System.String | reference | The reference of this token. |
SecurityTokenSettings(TimeSpan, String)
Initializes a new instance of the SecurityToken class.
Declaration
public SecurityTokenSettings(TimeSpan timeToLive, string reference)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeToLive | The amount of time this token remains usable. |
System.String | reference | The reference of this token. |
Properties
| Improve this DocLengthOfToken
Gets the length of this token.
Declaration
public int LengthOfToken { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The length of this token. |
Reference
Gets the reference of this token.
Declaration
public string Reference { get; }
Property Value
Type | Description |
---|---|
System.String | The reference of this token. |
TimeToLive
Gets the amount of time to keep this token alive.
Declaration
public TimeSpan TimeToLive { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan | The amount of time to keep this token alive. |