| | | 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.Collections.ObjectModel; |
| | | 5 | | using CoreWCF.IdentityModel.Policy; |
| | | 6 | | using CoreWCF.IdentityModel.Tokens; |
| | | 7 | | using CoreWCF.Security.Tokens; |
| | | 8 | | |
| | | 9 | | namespace CoreWCF.Security |
| | | 10 | | { |
| | | 11 | | public class SupportingTokenSpecification : SecurityTokenSpecification |
| | | 12 | | { |
| | | 13 | | public SupportingTokenSpecification(SecurityToken token, ReadOnlyCollection<IAuthorizationPolicy> tokenPolicies, |
| | 63 | 14 | | : this(token, tokenPolicies, attachmentMode, null) |
| | 63 | 15 | | { } |
| | | 16 | | |
| | | 17 | | public SupportingTokenSpecification(SecurityToken token, ReadOnlyCollection<IAuthorizationPolicy> tokenPolicies, |
| | 63 | 18 | | : base(token, tokenPolicies) |
| | | 19 | | { |
| | 63 | 20 | | SecurityTokenAttachmentModeHelper.Validate(attachmentMode); |
| | 63 | 21 | | SecurityTokenAttachmentMode = attachmentMode; |
| | 63 | 22 | | SecurityTokenParameters = tokenParameters; |
| | 63 | 23 | | } |
| | | 24 | | |
| | 111 | 25 | | public SecurityTokenAttachmentMode SecurityTokenAttachmentMode { get; } |
| | | 26 | | |
| | 0 | 27 | | internal SecurityTokenParameters SecurityTokenParameters { get; } |
| | | 28 | | } |
| | | 29 | | } |