JwtSecurityTokenRequirement.MaxClockSkew Property
Gets or sets the maximum clock skew to use when validating lifetime of a JwtSecurityToken.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Property MaxClockSkew As Nullable(Of TimeSpan)
public Nullable<TimeSpan> MaxClockSkew { get; set; }
public:
property Nullable<TimeSpan> MaxClockSkew {
Nullable<TimeSpan> get ();
void set (Nullable<TimeSpan> value);
}
member MaxClockSkew : Nullable<TimeSpan> with get, set
function get MaxClockSkew () : Nullable<TimeSpan>
function set MaxClockSkew (value : Nullable<TimeSpan>)
Property Value
Type: System.Nullable<TimeSpan>
Returns TimeSpan.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.