1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
//-----------------------------------------------------------------------------
// 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());
}
}
}
|