| | | 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 CoreWCF.IdentityModel.Selectors; |
| | | 5 | | using CoreWCF.Security.Tokens; |
| | | 6 | | |
| | | 7 | | namespace CoreWCF.Security |
| | | 8 | | { |
| | | 9 | | public class SupportingTokenAuthenticatorSpecification |
| | | 10 | | { |
| | | 11 | | public SupportingTokenAuthenticatorSpecification(SecurityTokenAuthenticator tokenAuthenticator, SecurityTokenRes |
| | 10 | 12 | | : this(tokenAuthenticator, securityTokenResolver, attachmentMode, tokenParameters, false) |
| | | 13 | | { |
| | 10 | 14 | | } |
| | | 15 | | |
| | 65 | 16 | | internal SupportingTokenAuthenticatorSpecification(SecurityTokenAuthenticator tokenAuthenticator, SecurityTokenR |
| | | 17 | | { |
| | 65 | 18 | | SecurityTokenAttachmentModeHelper.Validate(attachmentMode); |
| | 65 | 19 | | TokenAuthenticator = tokenAuthenticator ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( |
| | 65 | 20 | | TokenResolver = securityTokenResolver; |
| | 65 | 21 | | SecurityTokenAttachmentMode = attachmentMode; |
| | 65 | 22 | | TokenParameters = tokenParameters ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof |
| | 65 | 23 | | IsTokenOptional = isTokenOptional; |
| | 65 | 24 | | } |
| | | 25 | | |
| | 411 | 26 | | public SecurityTokenAuthenticator TokenAuthenticator { get; } |
| | | 27 | | |
| | 127 | 28 | | public SecurityTokenResolver TokenResolver { get; } |
| | | 29 | | |
| | 352 | 30 | | public SecurityTokenAttachmentMode SecurityTokenAttachmentMode { get; } |
| | | 31 | | |
| | 204 | 32 | | public SecurityTokenParameters TokenParameters { get; } |
| | | 33 | | |
| | 65 | 34 | | internal bool IsTokenOptional { get; set; } |
| | | 35 | | } |
| | | 36 | | } |