e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
48 lines
1.9 KiB
C#
48 lines
1.9 KiB
C#
//-----------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
namespace System.ServiceModel.Security.Tokens
|
|
{
|
|
using System.IdentityModel.Selectors;
|
|
using System.ServiceModel;
|
|
using System.IdentityModel.Tokens;
|
|
using System.ServiceModel.Security;
|
|
|
|
class WrappedKeySecurityTokenParameters : SecurityTokenParameters
|
|
{
|
|
protected WrappedKeySecurityTokenParameters(WrappedKeySecurityTokenParameters other)
|
|
: base(other)
|
|
{
|
|
// empty
|
|
}
|
|
|
|
public WrappedKeySecurityTokenParameters()
|
|
: base()
|
|
{
|
|
this.InclusionMode = SecurityTokenInclusionMode.Once;
|
|
}
|
|
|
|
internal protected override bool HasAsymmetricKey { get { return false; } }
|
|
internal protected override bool SupportsClientAuthentication { get { return false; } }
|
|
internal protected override bool SupportsServerAuthentication { get { return true; } }
|
|
internal protected override bool SupportsClientWindowsIdentity { get { return false; } }
|
|
|
|
protected override SecurityTokenParameters CloneCore()
|
|
{
|
|
return new WrappedKeySecurityTokenParameters(this);
|
|
}
|
|
|
|
internal protected override SecurityKeyIdentifierClause CreateKeyIdentifierClause(SecurityToken token, SecurityTokenReferenceStyle referenceStyle)
|
|
{
|
|
return base.CreateKeyIdentifierClause<EncryptedKeyHashIdentifierClause, LocalIdKeyIdentifierClause>(token, referenceStyle);
|
|
}
|
|
|
|
protected internal override void InitializeSecurityTokenRequirement(SecurityTokenRequirement requirement)
|
|
{
|
|
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException());
|
|
}
|
|
}
|
|
}
|