e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
41 lines
1.6 KiB
C#
41 lines
1.6 KiB
C#
//------------------------------------------------------------
|
|
// 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; }
|
|
}
|
|
}
|
|
}
|