Method IsExpired
IsExpired()
Returns true if the token has expired based on the current system clock and the calculated ExpiresAt value.
Declaration
public bool IsExpired()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This overload uses the SystemClock property to retrieve the current date and time.
IsExpired(IAfterPaySystemClock)
Returns true if the token has expired based on the current system clock and the calculated ExpiresAt value.
Declaration
public bool IsExpired(IAfterPaySystemClock systemClock)
Parameters
Type | Name | Description |
---|---|---|
IAfterPaySystemClock | systemClock | A IAfterPaySystemClock implementation to use when retrieving the current date and time. |
Returns
Type | Description |
---|---|
System.Boolean |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |