| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //------------------------------------------------------------
- // 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<IAuthorizationPolicy> tokenPolicies, SecurityTokenAttachmentMode attachmentMode)
- : this(token, tokenPolicies, attachmentMode, null)
- { }
- public SupportingTokenSpecification(SecurityToken token, ReadOnlyCollection<IAuthorizationPolicy> 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; }
- }
- }
- }
|