| | | 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 an effective time |
| | | 11 | | /// in the future. |
| | | 12 | | /// </summary> |
| | | 13 | | [Serializable] |
| | | 14 | | public class SecurityTokenNotYetValidException : SecurityTokenValidationException |
| | | 15 | | { |
| | | 16 | | /// <summary> |
| | | 17 | | /// Initializes a new instance of <see cref="SecurityTokenNotYetValidException"/> |
| | | 18 | | /// </summary> |
| | | 19 | | public SecurityTokenNotYetValidException() |
| | 0 | 20 | | : base(SR.Format(SR.ID4182)) |
| | | 21 | | { |
| | 0 | 22 | | } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Initializes a new instance of <see cref="SecurityTokenNotYetValidException"/> |
| | | 26 | | /// </summary> |
| | | 27 | | public SecurityTokenNotYetValidException(string message) |
| | 0 | 28 | | : base(message) |
| | | 29 | | { |
| | 0 | 30 | | } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Initializes a new instance of <see cref="SecurityTokenNotYetValidException"/> |
| | | 34 | | /// </summary> |
| | | 35 | | public SecurityTokenNotYetValidException(string message, Exception inner) |
| | 0 | 36 | | : base(message, inner) |
| | | 37 | | { |
| | 0 | 38 | | } |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// Initializes a new instance of <see cref="SecurityTokenNotYetValidException"/> |
| | | 42 | | /// </summary> |
| | | 43 | | protected SecurityTokenNotYetValidException(SerializationInfo info, StreamingContext context) |
| | 0 | 44 | | : base(info, context) |
| | | 45 | | { |
| | 0 | 46 | | } |
| | | 47 | | } |
| | | 48 | | } |