//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace System.ServiceModel.Security { using System.Collections.ObjectModel; using System.ServiceModel; using System.IdentityModel.Policy; using System.IdentityModel.Tokens; using System.ServiceModel.Security.Tokens; public class SupportingTokenSpecification : SecurityTokenSpecification { SecurityTokenAttachmentMode tokenAttachmentMode; SecurityTokenParameters tokenParameters; public SupportingTokenSpecification(SecurityToken token, ReadOnlyCollection tokenPolicies, SecurityTokenAttachmentMode attachmentMode) : this(token, tokenPolicies, attachmentMode, null) { } public SupportingTokenSpecification(SecurityToken token, ReadOnlyCollection tokenPolicies, SecurityTokenAttachmentMode attachmentMode, SecurityTokenParameters tokenParameters) : base(token, tokenPolicies) { SecurityTokenAttachmentModeHelper.Validate(attachmentMode); this.tokenAttachmentMode = attachmentMode; this.tokenParameters = tokenParameters; } public SecurityTokenAttachmentMode SecurityTokenAttachmentMode { get { return this.tokenAttachmentMode; } } internal SecurityTokenParameters SecurityTokenParameters { get { return this.tokenParameters; } } } }