| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Runtime.Serialization; |
| | | 6 | | |
| | | 7 | | namespace CoreWCF.IdentityModel.Tokens |
| | | 8 | | { |
| | | 9 | | /// <summary> |
| | | 10 | | /// Throw this exception when a received Security Token has expiration time in the past. |
| | | 11 | | /// </summary> |
| | | 12 | | [Serializable] |
| | | 13 | | public class SecurityTokenExpiredException : SecurityTokenValidationException |
| | | 14 | | { |
| | | 15 | | /// <summary> |
| | | 16 | | /// Initializes a new instance of <see cref="SecurityTokenExpiredException"/> |
| | | 17 | | /// </summary> |
| | | 18 | | public SecurityTokenExpiredException() |
| | 0 | 19 | | : base(SR.Format(SR.ID4181)) |
| | | 20 | | { |
| | 0 | 21 | | } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of <see cref="SecurityTokenExpiredException"/> |
| | | 25 | | /// </summary> |
| | | 26 | | public SecurityTokenExpiredException(string message) |
| | 0 | 27 | | : base(message) |
| | | 28 | | { |
| | 0 | 29 | | } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Initializes a new instance of <see cref="SecurityTokenExpiredException"/> |
| | | 33 | | /// </summary> |
| | | 34 | | public SecurityTokenExpiredException(string message, Exception inner) |
| | 0 | 35 | | : base(message, inner) |
| | | 36 | | { |
| | 0 | 37 | | } |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// Initializes a new instance of <see cref="SecurityTokenExpiredException"/> |
| | | 41 | | /// </summary> |
| | | 42 | | protected SecurityTokenExpiredException(SerializationInfo info, StreamingContext context) |
| | 0 | 43 | | : base(info, context) |
| | | 44 | | { |
| | 0 | 45 | | } |
| | | 46 | | } |
| | | 47 | | } |